This document reports processor conformance for [[RDFA-CORE]] and related specifications according to the requirements of the Evaluation and Report Language (EARL) 1.0 Schema [[EARL10-SCHEMA]].

This document describes RDFa Test Suite running at http://rdfa.info/ . according to the requirements of the Evaluation and Report Language (EARL) 1.0 Schema [[EARL10-SCHEMA]].

This report is also available in alternate formats: Turtle and JSON-LD

Test Manifests

HTML5+RDFa 1.1

RDFa Core 1.1 [[RDFA-CORE]] defines core processing rules for independent of host language, and provides default processing rules for XML-based host languages.

The HTML5 [[HTML5]] RDFa Host Language is defined in [[HTML-RDFA]]. HTML+RDFa extends RDFa Core 1.1 [[RDFA-CORE]] with host-language specific processing rules.

Test any23 clj-rdfa EasyRdf java-rdfa librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa Semargl
Test 0001: Predicate establishment with @property FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0006: @rel and @rev FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0007: @rel, @rev, @property, @content FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0008: empty string @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0009: @rev PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0010: @rel, @rev, @href PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0014: @datatype, xsd:integer PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0015: meta and link FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0017: Related blanknodes FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0018: @rel for predicate FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0019: @about for subject FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0020: Inheriting @about for subject FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0021: Subject inheritance with no @about PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0023: @id does not generate subjects PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0025: simple chaining test PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0026: @content PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0027: @content, ignore element content PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0029: markup stripping with @datatype PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0030: omitted @about PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0031: simple @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0032: @resource overrides @href FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0033: simple chaining test with bNode FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0034: simple img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0035: @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0036: @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0037: @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0038: @rev - img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0039: @rev - @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0041: @rev - @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0048: @typeof with @about and @rel present, no @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0049: @typeof with @about, no @rel or @resource PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0050: @typeof without anything else PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0051: @typeof with a single @property PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0052: @typeof with @resource and nothing else PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0053: @typeof with @resource and nothing else, with a subelement PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0054: multiple @property PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0055: multiple @rel PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0056: @typeof applies to @about on same element with hanging rel PASS PASS PASS PASS PASS PASS PASS PASS FAIL
Test 0057: hanging @rel creates multiple triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0059: multiple hanging @rels with multiple children PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0060: UTF-8 conformance PASS PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0064: @about with safe CURIE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0065: @rel with safe CURIE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0066: @about with @typeof in the head PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0067: @property in the head PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0068: Relative URI in @about FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0069: Relative URI in @href FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0070: Relative URI in @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0071: No explicit @about PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0072: Relative URI in @about (with XHTML base in head) PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0073: Relative URI in @resource (with XHTML base in head) PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0074: Relative URI in @href (with XHTML base in head) PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0075: Reserved word 'license' in @rel with no explicit @about FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0079: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0080: @about overrides @resource in incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0083: multiple ways of handling incomplete triples (merged) FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0085: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0087: All reserved XHTML @rel values (with :xxx) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0088: Interpretation of the CURIE "_:" FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0089: @src sets a new subject (@typeof) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0091: Non-reserved, un-prefixed CURIE in @property FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0099: Preservation of white space in literals FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0104: rdf:value FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0106: chaining with empty value in inner @rel FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0107: no garbage collecting bnodes FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0109: Tests to ensure @xml:base is ignored PASS PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0110: bNode generated even though no nested @about exists FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0111: two bNodes generated after three levels of nesting FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0112: plain literal with datatype="" FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0114: Relative URI dot-segment removal FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0115: XML Entities must be supported by RDFa parser PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0117: Fragment identifiers stripped from BASE FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0118: empty string "" is not equivalent to NULL - @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0119: "[prefix:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0120: "[:]" CURIE format is valid FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0122: resource="[]" does not set the object PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0126: Multiple @typeof values PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0131: Whitespace alternatives in attributes PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0134: Uppercase reserved words FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0140: Blank nodes identifiers are not allowed as predicates FAIL PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0147: xmlns prefix 'xmlzzz' (reserved) PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0174: Support single character prefix in CURIEs PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0175: IRI for @property is allowed FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0176: IRI for @rel and @rev is allowed FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0177: Test @prefix PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0178: Test @prefix with multiple mappings PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0179: Test @prefix vs @xmlns priority PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0180: Test @prefix with empty mapping FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0181: Test default XHTML vocabulary FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0182: Test prefix locality FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0183: Test @xmlns redefines @prefix FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0186: @vocab after subject declaration PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0187: @vocab redefinition PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0188: @vocab only affects predicates PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0189: @vocab overrides default term PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0190: Test term case insensitivity FAIL PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0196: Test process explicit XMLLiteral FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0206: Usage of Initial Context FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0207: Vevent using @typeof PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0213: Datatype generation for a literal with XML content, version 1.1 PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0214: Root element has implicit @about="" FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0216: Proper character encoding detection in spite of large headers PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0217: @vocab causes rdfa:usesVocabulary triple to be added FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0218: @inlist to create empty list FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0219: @inlist with literal FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0220: @inlist with IRI FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0221: @inlist with hetrogenious membership FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0222: @inlist with multi-level elements FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0223: @inlist with non-list property FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0224: @inlist hanging @rel FAIL PASS FAIL FAIL PASS PASS PASS PASS PASS
Test 0225: @inlist on different elements with same subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0226: confusion between multiple implicit collections (resource) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0227: confusion between multiple implicit collections (about) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0229: img[@src] test with omitted @about FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0230: @src does not set a new subject (@rel/@href) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0231: Set image license information FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046); FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0234: All defined HTML link relation values FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0247: Multiple incomplete triples, RDFa 1.1version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0251: lang FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0252: lang inheritance FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0253: plain literal with datatype="" and lang preservation FAIL PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0254: @datatype="" generates plain literal in presence of child nodes FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0255: lang="" clears language setting PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0256: lang and xml:lang on the same element PASS PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113) PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0258: The underscore character is not allowed as a prefix or in xmlns FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0259: XML+RDFa Initial Context FAIL PASS PASS FAIL PASS PASS FAIL PASS FAIL
Test 0261: White space preservation in XMLLiteral FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0263: @property appearing on the html element yields the base as the subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0264: @property appearing on the head element gets the subject from , ie, parent FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0265: @property appearing on the head element gets the subject from , ie, parent FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0269: Use of @property in HEAD without explicit subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0271: Use of @property in HEAD with explicit parent subject via @about FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0272: time element with @datetime an xsd:date FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0273: time element with @datetime an xsd:time FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0274: time element with @datetime an xsd:dateTime FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0275: time element with value an xsd:date FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0276: time element with value an xsd:time FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0277: time element with value an xsd:dateTime FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0278: @datetime overrides @content FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0279: @datatype used with @datetime overrides default datatype FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0280: time element with @datetime an xsd:duration FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0281: time element with @datetime an xsd:gYear FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0282: time element with @datetime an xsd:gYearMonth FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0283: time element with @datetime an invalid datatype generates plain literal FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0284: time element not matching datatype but with explicit @datatype FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0285: time element with @datetime an invalid datatype and in scope @lang generates plain literal with language FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0286: @value attribute overrides @content FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0287: time element with @datetime an xsd:dateTime with TZ offset FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0289: @href becomes subject when @property and @content are present FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0290: @href becomes subject when @property and @datatype are present FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0291: @href as subject overridden by @about FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0292: @about overriding @href as subject is used as parent resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0293: Testing the ':' character usage in a CURIE PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0295: Benchmark test PASS PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0296: @property does set parent object without @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0297: @about=[] with @typeof does not create a new subject FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0298: @about=[] with @typeof does not create a new object FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0301: @property with @typeof creates a typed_resource for chaining FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0302: @typeof with different content types FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0303: For HTML+RDFa 1.1, remove term elements of @rel/@rev when on same element as @property FAIL FAIL FAIL FAIL FAIL PASS FAIL PASS PASS
Test 0311: Ensure no triples are generated when @property is empty FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0312: Mute plain @rel if @property is present PASS FAIL PASS FAIL FAIL PASS FAIL PASS PASS
Test 0315: @property and @typeof with incomplete triples FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0316: @property and @typeof with incomplete triples (@href variant) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0317: @datatype inhibits new @property behavior FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0318: Setting @vocab to empty strings removes default vocabulary FAIL PASS FAIL FAIL FAIL FAIL PASS PASS PASS
Test 0319: Relative @profile FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0320: @property binds to @href FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Percentage passed out of 186 Tests 36% 98% 98% 38% 86% 99% 95% 100% 98%

HTML5+RDFa 1.1 Vocabulary

RDFa Core 1.1 [[RDFA-CORE]] Vocabulary Expansion is an optional RDFa extension used to perform limited OWL and RDFS expansion of terms associated with a Vocabulary.

The HTML5 [[HTML5]] RDFa Host Language is defined in [[HTML-RDFA]]. HTML+RDFa extends RDFa Core 1.1 [[RDFA-CORE]] with host-language specific processing rules.

Test RDF-RDFa-Parser
Test 0321: rdfa:ref to rdfa:Prototype FAIL
Test 0322: rdfa:ref for additional property value FAIL
Test 0323: Multiple references to rdfa:Prototype FAIL
Test 0324: Multiple references to rdfa:Prototype FAIL
Test 0325: Multiple references to rdfa:Prototype creating a resource PASS
Test 0326: rdfa:Prototype removed only if referenced FAIL
Percentage passed out of 6 Tests 16%

SVG+RDFa 1.1

RDFa Core 1.1 [[RDFA-CORE]] defines core processing rules for independent of host language, and provides default processing rules for XML-based host languages.

SVG [[SVG12]] supports RDFa by virtue of being an XML-based language, so the XML+RDFa rules defined in RDFa Core 1.1 [[RDFA-CORE]] apply to processing RDFa in SVG.

Test clj-rdfa EasyRdf java-rdfa librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa Semargl
Test 0201: Expressing an attribute using @property PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0202: Tests to ensure @xml:base used in SVG FAIL FAIL FAIL FAIL PASS PASS PASS PASS
Test 0203: Tests to ensure @xml:base, XML+RDFa used in non-root elements in SVG PASS FAIL FAIL FAIL PASS PASS PASS PASS
Test 0214: Root element has implicit @about="" PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0218: @inlist to create empty list PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0219: @inlist with literal PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0220: @inlist with IRI PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0221: @inlist with hetrogenious membership PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0222: @inlist with multi-level elements PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0223: @inlist with non-list property PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0224: @inlist hanging @rel PASS FAIL FAIL PASS PASS PASS PASS FAIL
Test 0225: @inlist on different elements with same subject PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0226: confusion between multiple implicit collections (resource) PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0227: confusion between multiple implicit collections (about) PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0234: All defined HTML link relation values PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0259: XML+RDFa Initial Context PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0289: @href becomes subject when @property and @content are present PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0290: @href becomes subject when @property and @datatype are present PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0291: @href as subject overridden by @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0292: @about overriding @href as subject is used as parent resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0293: Testing the ':' character usage in a CURIE PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0295: Benchmark test PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0296: @property does set parent object without @typeof PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0297: @about=[] with @typeof does not create a new subject PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0298: @about=[] with @typeof does not create a new object PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0301: @property with @typeof creates a typed_resource for chaining PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0302: @typeof with different content types PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0304: Embedded chunks of RDF/XML FAIL FAIL FAIL FAIL PASS PASS PASS PASS
Test 0311: Ensure no triples are generated when @property is empty PASS PASS PASS PASS PASS PASS PASS PASS
Percentage passed out of 31 Tests 93% 87% 9% 80% 100% 93% 100% 96%

XHTML1+RDFa 1.1

RDFa Core 1.1 [[RDFA-CORE]] defines core processing rules for independent of host language, and provides default processing rules for XML-based host languages.

XHTML+RDFa 1.1 [[XHTML-RDFA]] extends RDFa Core 1.1 [[RDFA-CORE]] with host-language specific processing rules.

Test any23 clj-rdfa EasyRdf java-rdfa librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa Semargl
Test 0001: Predicate establishment with @property FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0006: @rel and @rev FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0007: @rel, @rev, @property, @content FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0008: empty string @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0009: @rev PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0010: @rel, @rev, @href PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0012: @xml:lang PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0013: @xml:lang inheritance FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0014: @datatype, xsd:integer PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0015: meta and link FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0017: Related blanknodes FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0018: @rel for predicate FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0019: @about for subject FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0020: Inheriting @about for subject FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0021: Subject inheritance with no @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0023: @id does not generate subjects PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0025: simple chaining test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0026: @content PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0027: @content, ignore element content PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0029: markup stripping with @datatype PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0030: omitted @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0031: simple @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0032: @resource overrides @href FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0033: simple chaining test with bNode FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0034: simple img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0035: @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0036: @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0037: @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0038: @rev - img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0039: @rev - @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0041: @rev - @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0048: @typeof with @about and @rel present, no @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0049: @typeof with @about, no @rel or @resource PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0050: @typeof without anything else PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0051: @typeof with a single @property PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0052: @typeof with @resource and nothing else PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0053: @typeof with @resource and nothing else, with a subelement PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0054: multiple @property PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0055: multiple @rel PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0056: @typeof applies to @about on same element with hanging rel PASS PASS PASS PASS PASS PASS PASS PASS FAIL
Test 0057: hanging @rel creates multiple triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0059: multiple hanging @rels with multiple children PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0060: UTF-8 conformance PASS PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0061: @rel in head using reserved, non-prefixed XHTML value FAIL PASS FAIL PASS PASS PASS PASS PASS PASS
Test 0062: @rev in head using reserved, non-prefixed XHTML value FAIL PASS FAIL PASS PASS PASS PASS PASS PASS
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0064: @about with safe CURIE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0065: @rel with safe CURIE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0066: @about with @typeof in the head PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0067: @property in the head PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0068: Relative URI in @about FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0069: Relative URI in @href FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0070: Relative URI in @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0071: No explicit @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0072: Relative URI in @about (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0073: Relative URI in @resource (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0074: Relative URI in @href (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0075: Reserved word 'license' in @rel with no explicit @about FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0076: All reserved XHTML @rel values FAIL PASS FAIL PASS PASS PASS PASS PASS PASS
Test 0077: All reserved XHTML @rev values FAIL PASS FAIL PASS PASS PASS PASS PASS PASS
Test 0079: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0080: @about overrides @resource in incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0083: multiple ways of handling incomplete triples (merged) FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0085: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0087: All reserved XHTML @rel values (with :xxx) FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0088: Interpretation of the CURIE "_:" FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0089: @src sets a new subject (@typeof) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0091: Non-reserved, un-prefixed CURIE in @property FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal) PASS PASS PASS PASS PASS PASS PASS PASS FAIL
Test 0099: Preservation of white space in literals FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0104: rdf:value FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0106: chaining with empty value in inner @rel FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0107: no garbage collecting bnodes FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0108: plain literal with datatype="" and xml:lang preservation FAIL PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0109: Tests to ensure @xml:base is ignored PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0110: bNode generated even though no nested @about exists FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0111: two bNodes generated after three levels of nesting FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0112: plain literal with datatype="" FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0113: element with @property and no child nodes generates empty plain literal PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0114: Relative URI dot-segment removal FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0115: XML Entities must be supported by RDFa parser PASS PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0117: Fragment identifiers stripped from BASE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0118: empty string "" is not equivalent to NULL - @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0119: "[prefix:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0120: "[:]" CURIE format is valid FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0121: "[]" is a valid safe CURIE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0122: resource="[]" does not set the object PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0126: Multiple @typeof values PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0131: Whitespace alternatives in attributes PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0134: Uppercase reserved words FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0140: Blank nodes identifiers are not allowed as predicates FAIL PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0147: xmlns prefix 'xmlzzz' (reserved) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0172: @datatype="" generates plain literal in presence of child nodes PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0173: @xml:lang="" clears language setting PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0174: Support single character prefix in CURIEs PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0175: IRI for @property is allowed FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0176: IRI for @rel and @rev is allowed FAIL PASS PASS FAIL PASS PASS PASS PASS FAIL
Test 0177: Test @prefix PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0178: Test @prefix with multiple mappings PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0179: Test @prefix vs @xmlns priority PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0180: Test @prefix with empty mapping FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0181: Test default XHTML vocabulary FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0182: Test prefix locality FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0183: Test @xmlns redefines @prefix FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0186: @vocab after subject declaration PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0187: @vocab redefinition PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0188: @vocab only affects predicates PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0189: @vocab overrides default term PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0190: Test term case insensitivity FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0196: Test process explicit XMLLiteral FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0198: datatype XMLLiteral with other embedded RDFa FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0206: Usage of Initial Context FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0207: Vevent using @typeof PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0213: Datatype generation for a literal with XML content, version 1.1 PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0214: Root element has implicit @about="" FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0216: Proper character encoding detection in spite of large headers PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0217: @vocab causes rdfa:usesVocabulary triple to be added FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0218: @inlist to create empty list FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0219: @inlist with literal FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0220: @inlist with IRI FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0221: @inlist with hetrogenious membership FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0222: @inlist with multi-level elements FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0223: @inlist with non-list property FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0224: @inlist hanging @rel FAIL PASS FAIL FAIL PASS PASS PASS PASS FAIL
Test 0225: @inlist on different elements with same subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0226: confusion between multiple implicit collections (resource) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0227: confusion between multiple implicit collections (about) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0229: img[@src] test with omitted @about FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0230: @src does not set a new subject (@rel/@href) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0231: Set image license information FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046); FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0234: All defined HTML link relation values FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0247: Multiple incomplete triples, RDFa 1.1version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0251: lang FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0252: lang inheritance FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0253: plain literal with datatype="" and lang preservation FAIL PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0254: @datatype="" generates plain literal in presence of child nodes FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0255: lang="" clears language setting PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0256: lang and xml:lang on the same element PASS PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113) PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0258: The underscore character is not allowed as a prefix or in xmlns FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0259: XML+RDFa Initial Context FAIL PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0260: XHTML+RDFa Initial Context FAIL PASS FAIL FAIL PASS PASS PASS PASS PASS
Test 0261: White space preservation in XMLLiteral FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0263: @property appearing on the html element yields the base as the subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0264: @property appearing on the head element gets the subject from , ie, parent FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0265: @property appearing on the head element gets the subject from , ie, parent FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0269: Use of @property in HEAD without explicit subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0271: Use of @property in HEAD with explicit parent subject via @about FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0289: @href becomes subject when @property and @content are present FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0290: @href becomes subject when @property and @datatype are present FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0291: @href as subject overridden by @about FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0292: @about overriding @href as subject is used as parent resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0293: Testing the ':' character usage in a CURIE PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0295: Benchmark test PASS PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0296: @property does set parent object without @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0297: @about=[] with @typeof does not create a new subject FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0298: @about=[] with @typeof does not create a new object FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0301: @property with @typeof creates a typed_resource for chaining FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0302: @typeof with different content types FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0311: Ensure no triples are generated when @property is empty FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0318: Setting @vocab to empty strings removes default vocabulary FAIL PASS FAIL FAIL FAIL FAIL PASS PASS PASS
Test 0319: Relative @profile FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0320: @property binds to @href FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Percentage passed out of 178 Tests 39% 100% 96% 60% 96% 99% 95% 100% 97%

XHTML5+RDFa 1.1

RDFa Core 1.1 [[RDFA-CORE]] defines core processing rules for independent of host language, and provides default processing rules for XML-based host languages.

The HTML5 [[HTML5]] RDFa Host Language is defined in [[HTML-RDFA]]. HTML+RDFa extends RDFa Core 1.1 [[RDFA-CORE]] with host-language specific processing rules.

Test any23 clj-rdfa EasyRdf java-rdfa librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa Semargl
Test 0001: Predicate establishment with @property FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0006: @rel and @rev FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0007: @rel, @rev, @property, @content FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0008: empty string @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0009: @rev PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0010: @rel, @rev, @href PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0014: @datatype, xsd:integer PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0015: meta and link FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0017: Related blanknodes FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0018: @rel for predicate FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0019: @about for subject FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0020: Inheriting @about for subject FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0021: Subject inheritance with no @about PASS PASS PASS PASS PASS PASS PASS PASS FAIL
Test 0023: @id does not generate subjects PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0025: simple chaining test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0026: @content PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0027: @content, ignore element content PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0029: markup stripping with @datatype PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0030: omitted @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0031: simple @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0032: @resource overrides @href FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0033: simple chaining test with bNode FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0034: simple img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0035: @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0036: @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0037: @src/@href/@resource test PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0038: @rev - img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0039: @rev - @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0041: @rev - @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0048: @typeof with @about and @rel present, no @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0049: @typeof with @about, no @rel or @resource PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0050: @typeof without anything else PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0051: @typeof with a single @property PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0052: @typeof with @resource and nothing else PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0053: @typeof with @resource and nothing else, with a subelement PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0054: multiple @property PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0055: multiple @rel PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0056: @typeof applies to @about on same element with hanging rel PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0057: hanging @rel creates multiple triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0059: multiple hanging @rels with multiple children PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0060: UTF-8 conformance PASS PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0064: @about with safe CURIE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0065: @rel with safe CURIE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0066: @about with @typeof in the head PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0067: @property in the head PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0068: Relative URI in @about FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0069: Relative URI in @href FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0070: Relative URI in @resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0071: No explicit @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0072: Relative URI in @about (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0073: Relative URI in @resource (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0074: Relative URI in @href (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0075: Reserved word 'license' in @rel with no explicit @about FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0079: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0080: @about overrides @resource in incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0083: multiple ways of handling incomplete triples (merged) FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0085: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0087: All reserved XHTML @rel values (with :xxx) FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0088: Interpretation of the CURIE "_:" FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0089: @src sets a new subject (@typeof) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0091: Non-reserved, un-prefixed CURIE in @property FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0099: Preservation of white space in literals FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0104: rdf:value FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0106: chaining with empty value in inner @rel FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0107: no garbage collecting bnodes FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0110: bNode generated even though no nested @about exists FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0111: two bNodes generated after three levels of nesting FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0112: plain literal with datatype="" FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0114: Relative URI dot-segment removal FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0115: XML Entities must be supported by RDFa parser PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0117: Fragment identifiers stripped from BASE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0118: empty string "" is not equivalent to NULL - @about PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0119: "[prefix:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0120: "[:]" CURIE format is valid FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0121: "[]" is a valid safe CURIE FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0122: resource="[]" does not set the object PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0126: Multiple @typeof values PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0131: Whitespace alternatives in attributes PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0134: Uppercase reserved words FAIL PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0140: Blank nodes identifiers are not allowed as predicates FAIL PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0147: xmlns prefix 'xmlzzz' (reserved) PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0174: Support single character prefix in CURIEs PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0175: IRI for @property is allowed FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0176: IRI for @rel and @rev is allowed FAIL PASS PASS FAIL PASS PASS PASS PASS FAIL
Test 0177: Test @prefix PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0178: Test @prefix with multiple mappings PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0179: Test @prefix vs @xmlns priority PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0180: Test @prefix with empty mapping FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0181: Test default XHTML vocabulary FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0182: Test prefix locality FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0183: Test @xmlns redefines @prefix FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0186: @vocab after subject declaration PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0187: @vocab redefinition PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0188: @vocab only affects predicates PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0189: @vocab overrides default term PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0190: Test term case insensitivity FAIL PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0196: Test process explicit XMLLiteral FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0198: datatype XMLLiteral with other embedded RDFa FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0206: Usage of Initial Context FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0207: Vevent using @typeof PASS PASS PASS PASS PASS PASS PASS PASS PASS
Test 0213: Datatype generation for a literal with XML content, version 1.1 PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0214: Root element has implicit @about="" FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0216: Proper character encoding detection in spite of large headers PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0217: @vocab causes rdfa:usesVocabulary triple to be added FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0218: @inlist to create empty list FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0219: @inlist with literal FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0220: @inlist with IRI FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0221: @inlist with hetrogenious membership FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0222: @inlist with multi-level elements FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0223: @inlist with non-list property FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0224: @inlist hanging @rel FAIL PASS FAIL FAIL PASS PASS PASS PASS PASS
Test 0225: @inlist on different elements with same subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0226: confusion between multiple implicit collections (resource) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0227: confusion between multiple implicit collections (about) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0229: img[@src] test with omitted @about FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0230: @src does not set a new subject (@rel/@href) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0231: Set image license information FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046); FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0234: All defined HTML link relation values FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0247: Multiple incomplete triples, RDFa 1.1version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0251: lang FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0252: lang inheritance FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0253: plain literal with datatype="" and lang preservation FAIL PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0254: @datatype="" generates plain literal in presence of child nodes FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0255: lang="" clears language setting PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0256: lang and xml:lang on the same element PASS PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113) PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0258: The underscore character is not allowed as a prefix or in xmlns FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0259: XML+RDFa Initial Context FAIL PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0261: White space preservation in XMLLiteral FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0263: @property appearing on the html element yields the base as the subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0264: @property appearing on the head element gets the subject from , ie, parent FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0265: @property appearing on the head element gets the subject from , ie, parent FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0269: Use of @property in HEAD without explicit subject FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0271: Use of @property in HEAD with explicit parent subject via @about FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0272: time element with @datetime an xsd:date FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0273: time element with @datetime an xsd:time FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0274: time element with @datetime an xsd:dateTime FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0275: time element with value an xsd:date FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0276: time element with value an xsd:time FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0277: time element with value an xsd:dateTime FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0278: @datetime overrides @content FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0279: @datatype used with @datetime overrides default datatype FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0280: time element with @datetime an xsd:duration FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0281: time element with @datetime an xsd:gYear FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0282: time element with @datetime an xsd:gYearMonth FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0283: time element with @datetime an invalid datatype generates plain literal FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0284: time element not matching datatype but with explicit @datatype FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0285: time element with @datetime an invalid datatype and in scope @lang generates plain literal with language FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0286: @value attribute overrides @content FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0287: time element with @datetime an xsd:dateTime with TZ offset FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0289: @href becomes subject when @property and @content are present FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0290: @href becomes subject when @property and @datatype are present FAIL PASS PASS FAIL PASS PASS PASS PASS FAIL
Test 0291: @href as subject overridden by @about FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0292: @about overriding @href as subject is used as parent resource FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0293: Testing the ':' character usage in a CURIE PASS PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0295: Benchmark test PASS PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0296: @property does set parent object without @typeof FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0297: @about=[] with @typeof does not create a new subject FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0298: @about=[] with @typeof does not create a new object FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0301: @property with @typeof creates a typed_resource for chaining FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0302: @typeof with different content types FAIL PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0303: For HTML+RDFa 1.1, remove term elements of @rel/@rev when on same element as @property FAIL FAIL FAIL FAIL FAIL PASS FAIL PASS PASS
Test 0311: Ensure no triples are generated when @property is empty FAIL PASS PASS PASS PASS PASS PASS PASS PASS
Test 0312: Mute plain @rel if @property is present PASS FAIL PASS FAIL FAIL PASS FAIL PASS PASS
Test 0315: @property and @typeof with incomplete triples FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0316: @property and @typeof with incomplete triples (@href variant) FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0317: @datatype inhibits new @property behavior FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0318: Setting @vocab to empty strings removes default vocabulary FAIL PASS FAIL FAIL FAIL FAIL PASS PASS PASS
Test 0319: Relative @profile FAIL PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0320: @property binds to @href FAIL PASS PASS FAIL PASS PASS PASS PASS PASS
Percentage passed out of 187 Tests 35% 98% 98% 50% 87% 99% 88% 100% 98%

XHTML5+RDFa 1.1 Vocabulary

RDFa Core 1.1 [[RDFA-CORE]] Vocabulary Expansion is an optional RDFa extension used to perform limited OWL and RDFS expansion of terms associated with a Vocabulary.

The HTML5 [[HTML5]] RDFa Host Language is defined in [[HTML-RDFA]]. HTML+RDFa extends RDFa Core 1.1 [[RDFA-CORE]] with host-language specific processing rules.

Test RDF-RDFa-Parser
Test 0321: rdfa:ref to rdfa:Prototype FAIL
Test 0322: rdfa:ref for additional property value FAIL
Test 0323: Multiple references to rdfa:Prototype FAIL
Test 0324: Multiple references to rdfa:Prototype FAIL
Test 0325: Multiple references to rdfa:Prototype creating a resource PASS
Test 0326: rdfa:Prototype removed only if referenced FAIL
Percentage passed out of 6 Tests 16%

XML+RDFa 1.1

RDFa Core 1.1 [[RDFA-CORE]] defines core processing rules for independent of host language, and provides default processing rules for XML-based host languages.

The XML [[XML11]] RDFa Host Language uses the generic [[RDFA-CORE]] processing rules.

Test clj-rdfa EasyRdf java-rdfa librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa Semargl
Test 0001: Predicate establishment with @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0006: @rel and @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0007: @rel, @rev, @property, @content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0008: empty string @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0009: @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0010: @rel, @rev, @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0012: @xml:lang PASS PASS PASS PASS PASS PASS PASS PASS
Test 0013: @xml:lang inheritance PASS PASS PASS PASS PASS PASS PASS PASS
Test 0014: @datatype, xsd:integer PASS PASS PASS PASS PASS PASS PASS PASS
Test 0015: meta and link PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0017: Related blanknodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0018: @rel for predicate PASS PASS PASS PASS PASS PASS PASS PASS
Test 0019: @about for subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0020: Inheriting @about for subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0021: Subject inheritance with no @about PASS PASS FAIL PASS PASS PASS PASS FAIL
Test 0023: @id does not generate subjects PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0025: simple chaining test PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0026: @content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0027: @content, ignore element content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0029: markup stripping with @datatype PASS PASS PASS PASS PASS PASS PASS PASS
Test 0030: omitted @about PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0031: simple @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0032: @resource overrides @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0033: simple chaining test with bNode PASS PASS PASS PASS PASS PASS PASS PASS
Test 0034: simple img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0035: @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0036: @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0037: @src/@href/@resource test PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0038: @rev - img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0039: @rev - @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0041: @rev - @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0048: @typeof with @about and @rel present, no @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0049: @typeof with @about, no @rel or @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0050: @typeof without anything else PASS PASS PASS PASS PASS PASS PASS PASS
Test 0051: @typeof with a single @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0052: @typeof with @resource and nothing else PASS PASS PASS PASS PASS PASS PASS PASS
Test 0053: @typeof with @resource and nothing else, with a subelement PASS PASS PASS PASS PASS PASS PASS PASS
Test 0054: multiple @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0055: multiple @rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0056: @typeof applies to @about on same element with hanging rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0057: hanging @rel creates multiple triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0059: multiple hanging @rels with multiple children PASS PASS PASS PASS PASS PASS PASS PASS
Test 0060: UTF-8 conformance PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0064: @about with safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0065: @rel with safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0067: @property in the head PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0068: Relative URI in @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0071: No explicit @about PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0079: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0080: @about overrides @resource in incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0083: multiple ways of handling incomplete triples (merged) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0085: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0087: All reserved XHTML @rel values (with :xxx) PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0088: Interpretation of the CURIE "_:" PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0089: @src sets a new subject (@typeof) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0091: Non-reserved, un-prefixed CURIE in @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0099: Preservation of white space in literals PASS PASS PASS PASS PASS PASS PASS PASS
Test 0104: rdf:value PASS PASS PASS PASS PASS PASS PASS PASS
Test 0106: chaining with empty value in inner @rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0107: no garbage collecting bnodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0108: plain literal with datatype="" and xml:lang preservation PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0112: plain literal with datatype="" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0113: element with @property and no child nodes generates empty plain literal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0115: XML Entities must be supported by RDFa parser PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0118: empty string "" is not equivalent to NULL - @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0119: "[prefix:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS
Test 0120: "[:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS
Test 0121: "[]" is a valid safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0122: resource="[]" does not set the object PASS PASS PASS PASS PASS PASS PASS PASS
Test 0126: Multiple @typeof values PASS PASS PASS PASS PASS PASS PASS PASS
Test 0140: Blank nodes identifiers are not allowed as predicates PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0147: xmlns prefix 'xmlzzz' (reserved) PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0174: Support single character prefix in CURIEs PASS PASS PASS PASS PASS PASS PASS PASS
Test 0175: IRI for @property is allowed PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0176: IRI for @rel and @rev is allowed PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0180: Test @prefix with empty mapping PASS PASS PASS PASS PASS PASS PASS PASS
Test 0181: Test default XHTML vocabulary PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0196: Test process explicit XMLLiteral PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0202: Tests to ensure @xml:base used in SVG FAIL FAIL FAIL FAIL PASS PASS PASS PASS
Test 0203: Tests to ensure @xml:base, XML+RDFa used in non-root elements in SVG PASS FAIL FAIL FAIL PASS PASS PASS PASS
Test 0206: Usage of Initial Context PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0207: Vevent using @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0213: Datatype generation for a literal with XML content, version 1.1 PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0214: Root element has implicit @about="" PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0229: img[@src] test with omitted @about PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0247: Multiple incomplete triples, RDFa 1.1version PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0258: The underscore character is not allowed as a prefix or in xmlns PASS PASS FAIL PASS PASS PASS PASS FAIL
Test 0259: XML+RDFa Initial Context PASS PASS FAIL PASS PASS FAIL PASS PASS
Test 0261: White space preservation in XMLLiteral PASS PASS PASS PASS PASS PASS PASS PASS
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value PASS PASS PASS PASS PASS PASS PASS PASS
Test 0263: @property appearing on the html element yields the base as the subject PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0264: @property appearing on the head element gets the subject from , ie, parent PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0265: @property appearing on the head element gets the subject from , ie, parent PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0269: Use of @property in HEAD without explicit subject PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0271: Use of @property in HEAD with explicit parent subject via @about PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0289: @href becomes subject when @property and @content are present PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0290: @href becomes subject when @property and @datatype are present PASS PASS FAIL PASS PASS PASS PASS FAIL
Test 0291: @href as subject overridden by @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0292: @about overriding @href as subject is used as parent resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0293: Testing the ':' character usage in a CURIE PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0295: Benchmark test PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0296: @property does set parent object without @typeof PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0297: @about=[] with @typeof does not create a new subject PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0298: @about=[] with @typeof does not create a new object PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0301: @property with @typeof creates a typed_resource for chaining PASS PASS FAIL PASS PASS PASS PASS PASS
Test 0302: @typeof with different content types PASS PASS FAIL FAIL PASS PASS PASS PASS
Test 0311: Ensure no triples are generated when @property is empty PASS PASS PASS PASS PASS PASS PASS PASS
Test 0318: Setting @vocab to empty strings removes default vocabulary PASS FAIL FAIL FAIL FAIL PASS PASS PASS
Test 0319: Relative @profile PASS PASS FAIL FAIL PASS FAIL PASS PASS
Test 0320: @property binds to @href PASS PASS FAIL PASS PASS PASS PASS PASS
Percentage passed out of 122 Tests 99% 97% 56% 94% 99% 95% 100% 97%

XML+RDFa 1.1 Processor Graph

RDFa Core 1.1 [[RDFA-CORE]] Processor Status is an optional RDFa feature used to add triples for reporting on errors, warnings and other information. The processor adds a @rdfagraph attribute to indicate if the processor should return the output graph, processor graph, or both.

The XML [[XML11]] RDFa Host Language uses the generic [[RDFA-CORE]] processing rules.

Test clj-rdfa pyRdfa RDF::RDFa Semargl
Test 0235: rdfagraph='processor' does not generate standard triples PASS PASS PASS PASS
Test 0236: rdfagraph='processor' with a markup error generates rdfa:Error PASS PASS PASS PASS
Test 0237: rdfagraph='processor' with invalid SafeCURIE generates rdfa:Warning FAIL FAIL PASS PASS
Test 0238: rdfagraph='processor' with missing Term definition generates rdfa:Warning FAIL PASS PASS PASS
Test 0239: rdfagraph='processor' with undefined prefix generates rdfa:Warning FAIL FAIL PASS PASS
Percentage passed out of 5 Tests 40% 60% 100% 100%

XML+Role Attribute

XHTML Role Attribute Module [[XHTML-ROLE]] is a specification for generating triples from the HTML @role attribute.

The XML [[XML11]] RDFa Host Language uses the generic [[RDFA-CORE]] processing rules.

Test pyRdfa RDF::RDFa Semargl
Test 0305: role attribute with explicit id and term PASS PASS FAIL
Test 0307: role attribute with term and no id PASS PASS FAIL
Test 0308: role attribute with explicit id and IRI as object PASS PASS PASS
Test 0309: role attribute with explicit id and CURIE as object PASS PASS PASS
Test 0310: role attribute with multiple values PASS PASS PASS
Test 0314: Use of many terms from the default vocabulary PASS PASS PASS
Percentage passed out of 6 Tests 100% 100% 66%

XML+RDFa 1.1 Vocabulary

RDFa Core 1.1 [[RDFA-CORE]] Vocabulary Expansion is an optional RDFa extension used to perform limited OWL and RDFS expansion of terms associated with a Vocabulary.

The XML [[XML11]] RDFa Host Language uses the generic [[RDFA-CORE]] processing rules.

Test clj-rdfa pyRdfa RDF::RDFa Semargl
Test 0240: vocab_expansion='true' expands sub-property PASS PASS PASS PASS
Test 0241: vocab_expansion='true' expands equivalent-property PASS PASS PASS PASS
Test 0242: vocab_expansion='true' expands referenced equivalent-property PASS PASS PASS PASS
Test 0243: vocab_expansion='true' expands sub-class PASS PASS PASS PASS
Test 0244: vocab_expansion='true' expands equivalent-class PASS PASS PASS PASS
Test 0245: vocab_expansion='true' expands referenced equivalent-class PASS PASS PASS PASS
Percentage passed out of 6 Tests 100% 100% 100% 100%

Processors

This report was tested using the following processors:

any23
Description
Anything To Triples (any23) is a library, a web service and a command line tool that extracts structured data in RDF format from a variety of Web documents
Programming Language
Java
Developer
Digital Enterprise Research Institute
Home Page
http://developers.any23.org/
Test Suite Compliance
HTML5+RDFa 1.1 67/186 (36%)
XHTML1+RDFa 1.1 70/178 (39%)
XHTML5+RDFa 1.1 66/187 (35%)
clj-rdfa
Description
A Clojure library for parsing RDFa 1.1 embedded in XML or HTML
Programming Language
Clojure
Developer
Niklas Lindström
Home Page
https://github.com/niklasl/clj-rdfa/wiki
Test Suite Compliance
HTML5+RDFa 1.1 184/186 (98%)
SVG+RDFa 1.1 29/31 (93%)
XHTML1+RDFa 1.1 178/178 (100%)
XHTML5+RDFa 1.1 185/187 (98%)
XML+RDFa 1.1 121/122 (99%)
XML+RDFa 1.1 Processor Graph 2/5 (40%)
XML+RDFa 1.1 Vocabulary 6/6 (100%)
EasyRdf
Description
EasyRdf is a PHP library designed to make it easy to consume and produce RDF.
Programming Language
PHP
Developer
Nicholas J Humfrey
Home Page
http://www.aelius.com/njh/easyrdf/
Test Suite Compliance
HTML5+RDFa 1.1 183/186 (98%)
SVG+RDFa 1.1 27/31 (87%)
XHTML1+RDFa 1.1 171/178 (96%)
XHTML5+RDFa 1.1 184/187 (98%)
XML+RDFa 1.1 119/122 (97%)
green-turtle
Description
Green Turtle is an implementation of RDFa 1.1 for browsers.
Programming Language
Javascript
Developer
Alex Milowski
Home Page
http://code.google.com/p/green-turtle/
Test Suite Compliance
java-rdfa
Description
A SAX-based java RDFa parser.
Programming Language
Java
Developer
Damian Steer
Home Page
http://www.rootdev.net/maven/projects/java-rdfa/project-info.html
Test Suite Compliance
HTML5+RDFa 1.1 72/186 (38%)
SVG+RDFa 1.1 3/31 (9%)
XHTML1+RDFa 1.1 107/178 (60%)
XHTML5+RDFa 1.1 95/187 (50%)
XML+RDFa 1.1 69/122 (56%)
librdfa
Description
SAX-based implementation of an RDFa Processor in C
Programming Language
C
Developer
Manu Sporny
Home Page
https://github.com/rdfa/librdfa/wiki
Test Suite Compliance
HTML5+RDFa 1.1 161/186 (86%)
SVG+RDFa 1.1 25/31 (80%)
XHTML1+RDFa 1.1 172/178 (96%)
XHTML5+RDFa 1.1 163/187 (87%)
XML+RDFa 1.1 115/122 (94%)
pyRdfa
Description
pyRdfa is a distiller that generates RDF triples from an XML or HTML5 file annotated by RDFa in various RDF serialization formats. It can either be used directly from a command line or via a CGI service.
Programming Language
Python
Developer
Ivan Herman
Test Suite Compliance
HTML5+RDFa 1.1 185/186 (99%)
SVG+RDFa 1.1 31/31 (100%)
XHTML1+RDFa 1.1 177/178 (99%)
XHTML5+RDFa 1.1 186/187 (99%)
XML+RDFa 1.1 121/122 (99%)
XML+RDFa 1.1 Processor Graph 3/5 (60%)
XML+Role Attribute 6/6 (100%)
XML+RDFa 1.1 Vocabulary 6/6 (100%)
RDF-RDFa-Parser
Programming Language
Perl
Developer
Toby Inkster
Home Page
https://metacpan.org/release/RDF-RDFa-Parser
Test Suite Compliance
HTML5+RDFa 1.1 178/186 (95%)
HTML5+RDFa 1.1 Vocabulary 1/6 (16%)
SVG+RDFa 1.1 29/31 (93%)
XHTML1+RDFa 1.1 170/178 (95%)
XHTML5+RDFa 1.1 165/187 (88%)
XHTML5+RDFa 1.1 Vocabulary 1/6 (16%)
XML+RDFa 1.1 116/122 (95%)
RDF::RDFa
Description
RDF::RDFa is an RDFa reader/writer for Ruby using the RDF.rb library suite.
Programming Language
Ruby
Developer
Gregg Kellogg
Home Page
http://github.com/gkellogg/rdf-rdfa
Test Suite Compliance
HTML5+RDFa 1.1 186/186 (100%)
SVG+RDFa 1.1 31/31 (100%)
XHTML1+RDFa 1.1 178/178 (100%)
XHTML5+RDFa 1.1 187/187 (100%)
XML+RDFa 1.1 122/122 (100%)
XML+RDFa 1.1 Processor Graph 5/5 (100%)
XML+Role Attribute 6/6 (100%)
XML+RDFa 1.1 Vocabulary 6/6 (100%)
Semargl
Description
Semargl is a modular framework for crawling linked data from structured documents. The main goal of project is to provide lightweight and performant tool without excess dependencies.
Developer
Lev Khomich
Home Page
http://demo.semarglproject.org
Test Suite Compliance
HTML5+RDFa 1.1 184/186 (98%)
SVG+RDFa 1.1 30/31 (96%)
XHTML1+RDFa 1.1 174/178 (97%)
XHTML5+RDFa 1.1 184/187 (98%)
XML+RDFa 1.1 119/122 (97%)
XML+RDFa 1.1 Processor Graph 5/5 (100%)
XML+Role Attribute 4/6 (66%)
XML+RDFa 1.1 Vocabulary 6/6 (100%)

Test Definitions

Tests are repeated for each RDFa version and Host Language as necessary, but are based on common tests with minor rewriting based on host language specific attributes.

Input and SPARQL representations are shown for XHTML5, but will have some slight variation for different host languages.

Test 0001: Predicate establishment with @property

Tests @property to establish the predicate; literal object is in the content of the element.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0001</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0001</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0001</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0001</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test 0006: @rel and @rev

Tests @rev and @rel together, with the object being specified by @href, ignoring content

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0006</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}




Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0006</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}




Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0006</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}




Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0006</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</root>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}




Test 0007: @rel, @rev, @property, @content

Tests @rel, @rev, @property, and @content together to generate several RDF triples.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0007</title>
</head>
<body>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "Portrait of Mark" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0007</title>
</head>
<body>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "Portrait of Mark" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0007</title>
</head>
<body>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "Portrait of Mark" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0007</title>
</head>
<body>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</root>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "Portrait of Mark" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Test 0008: empty string @about

Tests empty @about.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0008</title>
</head>
<body>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0008.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0008</title>
</head>
<body>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0008.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0008</title>
</head>
<body>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0008.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0008</title>
</head>
<body>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0008.xml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}
Test 0009: @rev

Tests @rev.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1"
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1"
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1"
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1"
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</root>
ASK WHERE {
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}
Test 0010: @rel, @rev, @href

Tests @rel, @rev, and @href to generate two RDF triples.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0010</title>
<link about="http://example.org/people#Person1"
rel="foaf:knows" rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person1> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person2> .
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0010</title>
<link about="http://example.org/people#Person1"
rel="foaf:knows" rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person1> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person2> .
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0010</title>
<link about="http://example.org/people#Person1"
rel="foaf:knows" rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person1> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person2> .
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0010</title>
<link about="http://example.org/people#Person1"
rel="foaf:knows" rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</root>
ASK WHERE {
<http://example.org/people#Person1> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person2> .
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}
Test 0012: @xml:lang

Tests @xml:lang

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/">
<head about="">
<title>Test 0012</title>
<meta about="http://example.org/node" property="ex:property" xml:lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://example.org/">
<head about="">
<title>Test 0012</title>
<meta about="http://example.org/node" property="ex:property" xml:lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</root>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test 0013: @xml:lang inheritance

Tests @xml:lang inheritance

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/">
<head about="" xml:lang="fr">
<title xml:lang="en">Test 0013</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://example.org/">
<head about="" xml:lang="fr">
<title xml:lang="en">Test 0013</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</root>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test 0014: @datatype, xsd:integer

Tests setting the @datatype to xsd:integer

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:ex="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0014</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://example.org/bar> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0014</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://example.org/bar> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0014</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://example.org/bar> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0014</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
</body>
</root>
ASK WHERE {
<http://example.org/foo> <http://example.org/bar> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
}
Test 0015: meta and link

Tests meta and link with no parent @about

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0015.html> <http://purl.org/dc/elements/1.1/creator> "Fyodor Dostoevsky" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0015.html> <http://purl.org/dc/elements/1.1/source> <urn:isbn:0140449132> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0015.xhtml> <http://purl.org/dc/elements/1.1/creator> "Fyodor Dostoevsky" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0015.xhtml> <http://purl.org/dc/elements/1.1/source> <urn:isbn:0140449132> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0015.xhtml> <http://purl.org/dc/elements/1.1/creator> "Fyodor Dostoevsky" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0015.xhtml> <http://purl.org/dc/elements/1.1/source> <urn:isbn:0140449132> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0015.xml> <http://purl.org/dc/elements/1.1/creator> "Fyodor Dostoevsky" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0015.xml> <http://purl.org/dc/elements/1.1/source> <urn:isbn:0140449132> .
}
Test 0017: Related blanknodes

Tests creation of statements involving explicitly created blank nodes.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0017</title>
</head>
<body>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
</body>
</html>
ASK WHERE {
?x <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
?x <http://xmlns.com/foaf/0.1/knows> ?y .
?y <http://xmlns.com/foaf/0.1/name> "Ralph Swick" .
FILTER (isBlank(?x) && isBlank(?y))
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0017</title>
</head>
<body>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
</body>
</html>
ASK WHERE {
?x <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
?x <http://xmlns.com/foaf/0.1/knows> ?y .
?y <http://xmlns.com/foaf/0.1/name> "Ralph Swick" .
FILTER (isBlank(?x) && isBlank(?y))
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0017</title>
</head>
<body>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
</body>
</html>
ASK WHERE {
?x <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
?x <http://xmlns.com/foaf/0.1/knows> ?y .
?y <http://xmlns.com/foaf/0.1/name> "Ralph Swick" .
FILTER (isBlank(?x) && isBlank(?y))
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0017</title>
</head>
<body>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
</body>
</root>
ASK WHERE {
?x <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
?x <http://xmlns.com/foaf/0.1/knows> ?y .
?y <http://xmlns.com/foaf/0.1/name> "Ralph Swick" .
FILTER (isBlank(?x) && isBlank(?y))
}
Test 0018: @rel for predicate

Tests @rel to establish predicate.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0018</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0018</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0018</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0018</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>


</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Test 0019: @about for subject

Tests @about to establish subject.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0019</title>
</head>
<body>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
</body>
</html>
ASK WHERE {
<mailto:manu.sporny@digitalbazaar.com> <http://xmlns.com/foaf/0.1/knows> <mailto:michael.hausenblas@joanneum.at> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0019</title>
</head>
<body>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
</body>
</html>
ASK WHERE {
<mailto:manu.sporny@digitalbazaar.com> <http://xmlns.com/foaf/0.1/knows> <mailto:michael.hausenblas@joanneum.at> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0019</title>
</head>
<body>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
</body>
</html>
ASK WHERE {
<mailto:manu.sporny@digitalbazaar.com> <http://xmlns.com/foaf/0.1/knows> <mailto:michael.hausenblas@joanneum.at> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0019</title>
</head>
<body>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
</body>
</root>
ASK WHERE {
<mailto:manu.sporny@digitalbazaar.com> <http://xmlns.com/foaf/0.1/knows> <mailto:michael.hausenblas@joanneum.at> .
}
Test 0020: Inheriting @about for subject

Tests @about inheritance to establish subject.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0020</title>
</head>
<body>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0020</title>
</head>
<body>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0020</title>
</head>
<body>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0020</title>
</head>
<body>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>


</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test 0021: Subject inheritance with no @about

Tests inheritance of subject when no @about can be found

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0021</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0021.html> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0021</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0021.xhtml> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0021</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0021.xhtml> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0021</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>


</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0021.xml> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test 0023: @id does not generate subjects

Tests that @id does not generate subjects

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0023.html> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0023.xhtml> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0023.xhtml> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>


</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0023.xml> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test 0025: simple chaining test

Tests simple chaining with cascade of @resource and @property

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0025</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0025.html> <http://purl.org/dc/elements/1.1/creator> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0025.html#me> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0025.html#me> <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0025</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0025.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0025.xhtml#me> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0025.xhtml#me> <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0025</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0025.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0025.xhtml#me> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0025.xhtml#me> <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0025</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>


</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0025.xml> <http://purl.org/dc/elements/1.1/creator> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0025.xml#me> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0025.xml#me> <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
}
Test 0026: @content

Tests @content for literal object

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
</body>


</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
</body>


</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
</body>


</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
</body>


</root>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test 0027: @content, ignore element content

Tests @content for literal object, overriding element content.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>


</root>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test 0029: markup stripping with @datatype

Tests markup stripping from a span element with @datatype=xsd:string

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0029</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
</body>


</html>
ASK WHERE {
<http://example.org/foo> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck"^^<http://www.w3.org/2001/XMLSchema#string> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0029</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
</body>


</html>
ASK WHERE {
<http://example.org/foo> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck"^^<http://www.w3.org/2001/XMLSchema#string> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0029</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
</body>


</html>
ASK WHERE {
<http://example.org/foo> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck"^^<http://www.w3.org/2001/XMLSchema#string> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0029</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
</body>


</root>
ASK WHERE {
<http://example.org/foo> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck"^^<http://www.w3.org/2001/XMLSchema#string> .
}
Test 0030: omitted @about

Tests omitted @about.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0030</title>
</head>
<body>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0030.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0030</title>
</head>
<body>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0030.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0030</title>
</head>
<body>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0030.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0030</title>
</head>
<body>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0030.xml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}
Test 0031: simple @resource

Tests if @resource sets URIref object correct.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0031</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0031.html#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0031</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0031.xhtml#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0031</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0031.xhtml#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0031</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0031.xml#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}
Test 0032: @resource overrides @href

Tests if @resource overrides @href to set the URIref object.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0032</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0032.html#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0032</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0032.xhtml#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0032</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0032.xhtml#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0032</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0032.xml#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}
Test 0033: simple chaining test with bNode

Tests simple chaining with cascade of bNode and @property

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0033</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0033.html> <http://purl.org/dc/elements/1.1/creator> ?a .
?a <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0033</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0033.xhtml> <http://purl.org/dc/elements/1.1/creator> ?a .
?a <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0033</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>


</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0033.xhtml> <http://purl.org/dc/elements/1.1/creator> ?a .
?a <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0033</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>


</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0033.xml> <http://purl.org/dc/elements/1.1/creator> ?a .
?a <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
FILTER isBlank(?a)
}
Test 0034: simple img[@src] test

Tests if a @src (in img element) correctly sets the URIref object

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0034</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0034</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0034</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0034</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</root>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}
Test 0035: @src/@href test

Tests if @href overwrites @src

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0035</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0035</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0035</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0035</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</root>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}
Test 0036: @src/@resource test

Tests if @resource overwrites @src

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0036</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0036</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0036</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0036</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</root>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}
Test 0037: @src/@href/@resource test

Tests if @resource overwrites both @href and @src

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0037</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/mic.xhtml#photo> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0037</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/mic.xhtml#photo> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0037</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/mic.xhtml#photo> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0037</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</root>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/mic.xhtml#photo> .
}
Test 0038: @rev - img[@src] test

Tests if a @src (in img element) correctly sets the URIref subject (due to @rev)

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0038</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2007_01.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0038</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2007_01.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0038</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2007_01.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0038</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</root>
ASK WHERE {
<http://sw-app.org/img/mic_2007_01.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test 0039: @rev - @src/@href test

Tests if @href overwrites @src correctly to set the URIref subject (due to @rev)

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0039</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0039</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0039</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0039</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</root>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test 0041: @rev - @src/@href/@resource test

Tests if @resource overwrites both @href and @src correctly to set the URIref subject (due to @rev)

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0041</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#photo> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0041</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#photo> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0041</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#photo> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0041</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</root>
ASK WHERE {
<http://sw-app.org/mic.xhtml#photo> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test 0048: @typeof with @about and @rel present, no @resource

Tests @typeof with @about and @rel present, no @resource

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0048</title>
</head>
<body>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0048</title>
</head>
<body>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0048</title>
</head>
<body>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0048</title>
</head>
<body>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
FILTER isBlank(?a)
}
Test 0049: @typeof with @about, no @rel or @resource

Tests @typeof with @about, no @rel or @resource

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0049</title>
</head>
<body>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0049</title>
</head>
<body>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0049</title>
</head>
<body>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0049</title>
</head>
<body>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}
Test 0050: @typeof without anything else

Tests @typeof without anything else

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0050</title>
</head>
<body>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0050</title>
</head>
<body>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0050</title>
</head>
<body>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0050</title>
</head>
<body>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</root>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
FILTER isBlank(?a)
}
Test 0051: @typeof with a single @property

Tests @typeof with a single @property

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0051</title>
</head>
<body>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0051.html> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0051.html> <http://xmlns.com/foaf/0.1/topic> "John Doe" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0051</title>
</head>
<body>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0051.xhtml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0051.xhtml> <http://xmlns.com/foaf/0.1/topic> "John Doe" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0051</title>
</head>
<body>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0051.xhtml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0051.xhtml> <http://xmlns.com/foaf/0.1/topic> "John Doe" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0051</title>
</head>
<body>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0051.xml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0051.xml> <http://xmlns.com/foaf/0.1/topic> "John Doe" .
}
Test 0052: @typeof with @resource and nothing else

Tests to ensure that @typeof does not apply to @resource

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0052</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0052</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0052</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0052</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
</body>
</root>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}
Test 0053: @typeof with @resource and nothing else, with a subelement

Tests to make sure that @typeof does not apply to @resource, but @resource sets the subject for the next triple to be generated

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0053</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0053</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0053</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0053</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
</body>
</root>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
}
Test 0054: multiple @property

Tests multiple @property separated by white spaces

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0054</title>
</head>
<body>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0054.html> <http://purl.org/dc/elements/1.1/creator> "Fabien Gandon" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0054.html> <http://purl.org/dc/elements/1.1/publisher> "Fabien Gandon" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0054</title>
</head>
<body>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0054.xhtml> <http://purl.org/dc/elements/1.1/creator> "Fabien Gandon" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0054.xhtml> <http://purl.org/dc/elements/1.1/publisher> "Fabien Gandon" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0054</title>
</head>
<body>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0054.xhtml> <http://purl.org/dc/elements/1.1/creator> "Fabien Gandon" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0054.xhtml> <http://purl.org/dc/elements/1.1/publisher> "Fabien Gandon" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0054</title>
</head>
<body>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0054.xml> <http://purl.org/dc/elements/1.1/creator> "Fabien Gandon" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0054.xml> <http://purl.org/dc/elements/1.1/publisher> "Fabien Gandon" .
}
Test 0055: multiple @rel

Tests multiple @rel separated by white spaces

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0055</title>
</head>
<body>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0055.html> <http://purl.org/dc/elements/1.1/creator> <http://www-sop.inria.fr/acacia/fabien/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0055.html> <http://purl.org/dc/elements/1.1/publisher> <http://www-sop.inria.fr/acacia/fabien/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0055</title>
</head>
<body>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0055.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www-sop.inria.fr/acacia/fabien/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0055.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www-sop.inria.fr/acacia/fabien/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0055</title>
</head>
<body>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0055.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www-sop.inria.fr/acacia/fabien/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0055.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www-sop.inria.fr/acacia/fabien/> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0055</title>
</head>
<body>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0055.xml> <http://purl.org/dc/elements/1.1/creator> <http://www-sop.inria.fr/acacia/fabien/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0055.xml> <http://purl.org/dc/elements/1.1/publisher> <http://www-sop.inria.fr/acacia/fabien/> .
}
Test 0056: @typeof applies to @about on same element with hanging rel

Tests if @typeof applies to @about on same element with hanging @rel

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0056</title>
</head>
<body>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0056</title>
</head>
<body>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0056</title>
</head>
<body>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0056</title>
</head>
<body>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#ben> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
}
Test 0057: hanging @rel creates multiple triples

Tests if hanging @rel creates multiple triples

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0057</title>
</head>
<body>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#ivan> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
<http://www.example.org/#ivan> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0057</title>
</head>
<body>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#ivan> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
<http://www.example.org/#ivan> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0057</title>
</head>
<body>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#ivan> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
<http://www.example.org/#ivan> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0057</title>
</head>
<body>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#ivan> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
<http://www.example.org/#ivan> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test 0059: multiple hanging @rels with multiple children

Tests multiple hanging @rels with multiple children

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0059</title>
</head>
<body>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#fabien> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#fabien> .
<http://www.example.org/#manu> <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
<http://www.example.org/#fabien> <http://xmlns.com/foaf/0.1/name> "Fabien Gandon" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0059</title>
</head>
<body>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0059.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0059.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0059.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#fabien> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0059.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#fabien> .
<http://www.example.org/#manu> <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
<http://www.example.org/#fabien> <http://xmlns.com/foaf/0.1/name> "Fabien Gandon" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0059</title>
</head>
<body>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#fabien> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#fabien> .
<http://www.example.org/#manu> <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
<http://www.example.org/#fabien> <http://xmlns.com/foaf/0.1/name> "Fabien Gandon" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0059</title>
</head>
<body>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0059.xml> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0059.xml> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0059.xml> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#fabien> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0059.xml> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#fabien> .
<http://www.example.org/#manu> <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
<http://www.example.org/#fabien> <http://xmlns.com/foaf/0.1/name> "Fabien Gandon" .
}
Test 0060: UTF-8 conformance

Tests conformance with UTF-8 encoding

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0060</title>
</head>
<body>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#matsumoto-kimiko> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#matsumoto-kimiko> <http://xmlns.com/foaf/0.1/name> "松本 后子" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0060</title>
</head>
<body>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#matsumoto-kimiko> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#matsumoto-kimiko> <http://xmlns.com/foaf/0.1/name> "松本 后子" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0060</title>
</head>
<body>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#matsumoto-kimiko> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#matsumoto-kimiko> <http://xmlns.com/foaf/0.1/name> "松本 后子" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0060</title>
</head>
<body>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#matsumoto-kimiko> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#matsumoto-kimiko> <http://xmlns.com/foaf/0.1/name> "松本 后子" .
}
Test 0061: @rel in head using reserved, non-prefixed XHTML value

Tests @rel in head using reserved, non-prefixed XHTML value

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0061</title>
<link rel="next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0062.xhtml" />
</head>
<body>
<p>This is the first chapter in a series of chapters.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0061.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0062.xhtml> .
}
Test 0062: @rev in head using reserved, non-prefixed XHTML value

Tests @rev in head using reserved, non-prefixed XHTML value

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0062</title>
<link rev="prev" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0063.xhtml" />
</head>
<body>
<p>This is unit test #62. The next unit test is #63.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0063.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0062.xhtml> .
}
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax

Tests @rel in head using reserved XHTML value and empty-prefix CURIE syntax

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0064.html" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0063.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0064.html> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0064.xhtml" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0063.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0064.xhtml> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0064.xhtml" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0063.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0064.xhtml> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0064.xml" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0063.xml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0064.xml> .
}
Test 0064: @about with safe CURIE

Tests if @about generates a proper triple when a safe CURIE is used

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0064</title>
</head>
<body>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://digitalbazaar.com/people/manu> .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0064</title>
</head>
<body>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://digitalbazaar.com/people/manu> .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0064</title>
</head>
<body>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://digitalbazaar.com/people/manu> .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0064</title>
</head>
<body>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
</body>
</root>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://digitalbazaar.com/people/manu> .
FILTER isBlank(?a)
}
Test 0065: @rel with safe CURIE

Tests if @rel properly connects triples generated when safe CURIEs are used

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0065</title>
</head>
<body>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
</body>


</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:michael.hausenblas@joanneum.at> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0065</title>
</head>
<body>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
</body>


</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:michael.hausenblas@joanneum.at> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0065</title>
</head>
<body>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
</body>


</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:michael.hausenblas@joanneum.at> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0065</title>
</head>
<body>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
</body>


</root>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:michael.hausenblas@joanneum.at> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test 0066: @about with @typeof in the head

Test to make sure that @about (with current document) is implied in the head, and the proper triples are generated using @typeof

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head typeof="foaf:Document">
<title>Test 0066</title>
</head>
<body>
<p>This is test #66.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0066.html> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head typeof="foaf:Document">
<title>Test 0066</title>
</head>
<body>
<p>This is test #66.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0066.xhtml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head typeof="foaf:Document">
<title>Test 0066</title>
</head>
<body>
<p>This is test #66.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0066.xhtml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
}
Test 0067: @property in the head

Test to make sure that @property in head uses the implied current document as the subject if no other subject is specified

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title property="foaf:topic">Test 0067</title>
</head>
<body>
<p>This is test #67.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0067.html> <http://xmlns.com/foaf/0.1/topic> "Test 0067" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title property="foaf:topic">Test 0067</title>
</head>
<body>
<p>This is test #67.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0067.xhtml> <http://xmlns.com/foaf/0.1/topic> "Test 0067" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title property="foaf:topic">Test 0067</title>
</head>
<body>
<p>This is test #67.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0067.xhtml> <http://xmlns.com/foaf/0.1/topic> "Test 0067" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title property="foaf:topic">Test 0067</title>
</head>
<body>
<p>This is test #67.</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0067.xml> <http://xmlns.com/foaf/0.1/topic> "Test 0067" .
}
Test 0068: Relative URI in @about

Tests to ensure that relative URI is resolved correctly when used in @about

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0068</title>
</head>
<body>
<p about="0067.html">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0067.html> <http://purl.org/dc/elements/1.1/title> "Test 0067" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0068</title>
</head>
<body>
<p about="0067.xhtml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0067.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0067" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0068</title>
</head>
<body>
<p about="0067.xhtml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0067.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0067" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0068</title>
</head>
<body>
<p about="0067.xml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0067.xml> <http://purl.org/dc/elements/1.1/title> "Test 0067" .
}
Test 0069: Relative URI in @href

Tests to ensure that relative URI is resolved correctly when used in @href

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0069</title>
</head>
<body>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.html">Test 0070</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0069.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0070.html> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0069</title>
</head>
<body>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.xhtml">Test 0070</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0069.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0070.xhtml> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0069</title>
</head>
<body>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.xhtml">Test 0070</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0069.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0070.xhtml> .
}
Test 0070: Relative URI in @resource

Tests to ensure that relative URI is resolved correctly when used in @resource

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0070</title>
</head>
<body>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.html">Test 0069</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0070.html> <http://www.w3.org/1999/xhtml/vocab#prev> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0069.html> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0070</title>
</head>
<body>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.xhtml">Test 0069</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0070.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0069.xhtml> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0070</title>
</head>
<body>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.xhtml">Test 0069</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0070.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0069.xhtml> .
}
Test 0071: No explicit @about

Tests to ensure that a triple is generated even if @typeof and @about is not specified anywhere in the document

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0071</title>
</head>
<body>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0071.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0071</title>
</head>
<body>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0071.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0071</title>
</head>
<body>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0071.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0071</title>
</head>
<body>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0071.xml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}
Test 0072: Relative URI in @about (with XHTML base in head)

Tests to ensure that relative URIs are resolved correctly when used in @about with XHTML base set in head

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0072</title>
</head>
<body>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/faq> <http://purl.org/dc/elements/1.1/title> "Example FAQ" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0072</title>
</head>
<body>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/faq> <http://purl.org/dc/elements/1.1/title> "Example FAQ" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0072</title>
</head>
<body>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/faq> <http://purl.org/dc/elements/1.1/title> "Example FAQ" .
}
Test 0073: Relative URI in @resource (with XHTML base in head)

Tests to ensure that relative URIs are resolved correctly when used in @resource with XHTML base set in head

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}
Test 0074: Relative URI in @href (with XHTML base in head)

Tests to ensure that relative URIs are resolved correctly when used in @href with XHTML base set in head

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}
Test 0075: Reserved word 'license' in @rel with no explicit @about

Tests to ensure that the XHTML+RDFa reserved word 'license' when used in @rel (with no @about) generates the proper triple

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0075</title>
</head>
<body>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0075</title>
</head>
<body>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0075</title>
</head>
<body>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}
Test 0076: All reserved XHTML @rel values

Tests to ensure that all reserved XHTML words are supported in @rel

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0076</title>
</head>
<body>
<p>
<a rel="alternate" href="http://example.org/alternate">alternate</a>
<a rel="appendix" href="http://example.org/appendix">appendix</a>
<a rel="bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel="cite" href="http://example.org/cite">cite</a>
<a rel="chapter" href="http://example.org/chapter">chapter</a>
<a rel="contents" href="http://example.org/contents">contents</a>
<a rel="copyright" href="http://example.org/copyright">copyright</a>
<a rel="glossary" href="http://example.org/glossary">glossary</a>
<a rel="help" href="http://example.org/help">help</a>
<a rel="icon" href="http://example.org/icon">icon</a>
<a rel="index" href="http://example.org/index">index</a>
<a rel="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="meta" href="http://example.org/meta">meta</a>
<a rel="next" href="http://example.org/next">next</a>
<a rel="p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel="prev" href="http://example.org/prev">prev</a>
<a rel="role" href="http://example.org/role">role</a>
<a rel="section" href="http://example.org/section">section</a>
<a rel="subsection" href="http://example.org/subsection">subsection</a>
<a rel="start" href="http://example.org/start">start</a>
<a rel="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
</body>
</html>
 ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}
Test 0077: All reserved XHTML @rev values

Tests to ensure that all reserved XHTML words are supported in @rev

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0077</title>
</head>
<body>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.xhtml">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.xhtml">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.xhtml">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.xhtml">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.xhtml">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.xhtml">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.xhtml">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.xhtml">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.xhtml">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.xhtml">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.xhtml">index</span>
<span about="http://example.org/first" rev="first"
href="0077.xhtml">first</span>
<span about="http://example.org/last" rev="last"
href="0077.xhtml">last</span>
<span about="http://example.org/license" rev="license"
href="0077.xhtml">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.xhtml">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.xhtml">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.xhtml">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.xhtml">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.xhtml">role</span>
<span about="http://example.org/section" rev="section"
href="0077.xhtml">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.xhtml">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.xhtml">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.xhtml">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.xhtml">up</span>
</p>
</body>
</html>
ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#first>
<http://example.org/first> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}
Test 0079: @resource and @href in completing incomplete triples

Tests role of @resource and @href in completing incomplete triples (including their mutual priorities)

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0079</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
<http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0079</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
<http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0079</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
<http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0079</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
<http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}
Test 0080: @about overrides @resource in incomplete triples

Tests if @about has a higher priority than @resource in handling incomplete triples

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0080</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0080</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0080</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0080</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
}
Test 0083: multiple ways of handling incomplete triples (merged)

Tests multiple ways of handling incomplete triples; the first two triples should use the same bNode as subject ('merged'); the third case should use @about

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0083</title>
</head>
<body>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {    
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0083</title>
</head>
<body>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {    
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0083</title>
</head>
<body>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {    
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0083</title>
</head>
<body>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</body>
</root>
ASK WHERE {    
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev

Tests multiple ways of handling incomplete triples, this time with both @rel and @rev. There is an intermediate div that should be ignored by the process

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0084</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0084</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0084</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0084</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test 0085: @resource and @href in completing incomplete triples

Tests the role of @resource and @href in completing incomplete triples (including their mutual priorities), but with an intermediate layer (ie, bNode) added

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0085</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> _:a.
_:a <http://xmlns.com/foaf/0.1/knows> <http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0085</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> _:a.
_:a <http://xmlns.com/foaf/0.1/knows> <http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0085</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> _:a.
_:a <http://xmlns.com/foaf/0.1/knows> <http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0085</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> _:a.
_:a <http://xmlns.com/foaf/0.1/knows> <http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}
Test 0087: All reserved XHTML @rel values (with :xxx)

Tests to ensure that all reserved XHTML words are supported in @rel (with :xxx)

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0087</title>
</head>
<body>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
</body>
</html>
ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#first>
<http://example.org/first> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0087</title>
</head>
<body>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
</body>
</html>
ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#first>
<http://example.org/first> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0087</title>
</head>
<body>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
</body>
</html>
ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#first>
<http://example.org/first> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0087</title>
</head>
<body>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
</body>
</root>
ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#first>
<http://example.org/first> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}
Test 0088: Interpretation of the CURIE "_:"

Test the interpretation of the CURIE "_:"

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0088</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0088</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0088</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0088</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test 0089: @src sets a new subject (@typeof)

Tests to ensure that @src sets a new subject (focuses on @typeof).

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Image> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Image> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Image> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</root>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Image> .
}
Test 0091: Non-reserved, un-prefixed CURIE in @property

Tests to ensure that non-reserved, un-prefixed CURIEs, when used in @property, generate triples.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0091</title>
</head>
<body>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
</body>
</html>
ASK WHERE {
?a <http://www.w3.org/1999/xhtml/vocab#definition> "a bi-pedal primate" .
?a <http://www.w3.org/1999/xhtml/vocab#note> "confused animal" .
?a <http://www.w3.org/1999/xhtml/vocab#foo> "Milky Way" .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0091</title>
</head>
<body>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
</body>
</html>
ASK WHERE {
?a <http://www.w3.org/1999/xhtml/vocab#definition> "a bi-pedal primate" .
?a <http://www.w3.org/1999/xhtml/vocab#note> "confused animal" .
?a <http://www.w3.org/1999/xhtml/vocab#foo> "Milky Way" .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0091</title>
</head>
<body>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
</body>
</html>
ASK WHERE {
?a <http://www.w3.org/1999/xhtml/vocab#definition> "a bi-pedal primate" .
?a <http://www.w3.org/1999/xhtml/vocab#note> "confused animal" .
?a <http://www.w3.org/1999/xhtml/vocab#foo> "Milky Way" .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0091</title>
</head>
<body>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
</body>
</root>
ASK WHERE {
?a <http://www.w3.org/1999/xhtml/vocab#definition> "a bi-pedal primate" .
?a <http://www.w3.org/1999/xhtml/vocab#note> "confused animal" .
?a <http://www.w3.org/1999/xhtml/vocab#foo> "Milky Way" .
FILTER isBlank(?a)
}
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal)

Tests the explicit specification of an RDF XMLLiteral with @datatype using a non-RDF namespace, yielding a user-data-typed literal

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0093</title>
</head>
<body>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0093.html> <http://purl.org/dc/elements/1.1/creator> "Albert Einstein" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0093.html> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time"^^<http://www.example.org/XMLLiteral> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0093</title>
</head>
<body>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0093.xhtml> <http://purl.org/dc/elements/1.1/creator> "Albert Einstein" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0093.xhtml> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time"^^<http://www.example.org/XMLLiteral> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0093</title>
</head>
<body>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0093.xhtml> <http://purl.org/dc/elements/1.1/creator> "Albert Einstein" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0093.xhtml> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time"^^<http://www.example.org/XMLLiteral> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0093</title>
</head>
<body>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0093.xml> <http://purl.org/dc/elements/1.1/creator> "Albert Einstein" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0093.xml> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time"^^<http://www.example.org/XMLLiteral> .
}
Test 0099: Preservation of white space in literals

Tests the preservation of white space in literals.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0099</title>
</head>
<body>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
</body>
</html>
ASK WHERE {
<http://www.cwi.nl/~steven/> <http://www.example.org/likes> """
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching""" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0099</title>
</head>
<body>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
</body>
</html>
ASK WHERE {
<http://www.cwi.nl/~steven/> <http://www.example.org/likes> """
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching""" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0099</title>
</head>
<body>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
</body>
</html>
ASK WHERE {
<http://www.cwi.nl/~steven/> <http://www.example.org/likes> """
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching""" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0099</title>
</head>
<body>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
</body>
</root>
ASK WHERE {
<http://www.cwi.nl/~steven/> <http://www.example.org/likes> """
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching""" .
}
Test 0104: rdf:value

Tests rdf:value with blank nodes to give a value with a unit

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0104</title>
</head>
<body>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0104.html#interfenestration> <http://www.example.org/size> _:a .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "17" .
_:a <http://www.example.org/unit> "character" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0104</title>
</head>
<body>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0104.xhtml#interfenestration> <http://www.example.org/size> _:a .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "17" .
_:a <http://www.example.org/unit> "character" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0104</title>
</head>
<body>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0104.xhtml#interfenestration> <http://www.example.org/size> _:a .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "17" .
_:a <http://www.example.org/unit> "character" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0104</title>
</head>
<body>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0104.xml#interfenestration> <http://www.example.org/size> _:a .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "17" .
_:a <http://www.example.org/unit> "character" .
}
Test 0106: chaining with empty value in inner @rel

Tests the behavior of triple generation in the case where the inner @rel is defined, but is blank, which halts chaining.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0106.html> <http://purl.org/dc/elements/1.1/creator> ?a .
OPTIONAL {
?x ?y <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/manu.html> .
}
FILTER (isBlank(?a) && !BOUND(?x) && !BOUND(?y))
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0106.xhtml> <http://purl.org/dc/elements/1.1/creator> ?a .
OPTIONAL {
?x ?y <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/manu.html> .
}
FILTER (isBlank(?a) && !BOUND(?x) && !BOUND(?y))
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0106.xhtml> <http://purl.org/dc/elements/1.1/creator> ?a .
OPTIONAL {
?x ?y <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/manu.html> .
}
FILTER (isBlank(?a) && !BOUND(?x) && !BOUND(?y))
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0106.xml> <http://purl.org/dc/elements/1.1/creator> ?a .
OPTIONAL {
?x ?y <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/manu.html> .
}
FILTER (isBlank(?a) && !BOUND(?x) && !BOUND(?y))
}
Test 0107: no garbage collecting bnodes

Checks to make sure that that while we shouldn't garbage collect bnodes no triples are generated.

Expected query to return false

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:ex="http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>
# This test should result in a 'NO', i.e. no triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0107.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>
# This test should result in a 'NO', i.e. no triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0107.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>
# This test should result in a 'NO', i.e. no triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0107.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</root>
# This test should result in a 'NO', i.e. no triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0107.xml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
}
Test 0108: plain literal with datatype="" and xml:lang preservation

Checks to make sure that the RDFa parser emits a plain literal when the datatype is specified as "" and preserves the xml:lang value. The text, with control characters and whitespace preserved, reads "Greek white space ".

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "ελληνικό\nάσπρο διάστημα\n"@el .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</root>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "ελληνικό\nάσπρο διάστημα\n"@el .
}
Test 0109: Tests to ensure @xml:base is ignored

Tests to make sure that @xml:base is ignored in XHTML+RDFa 1.0. The input test document is invalid XHTML.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xml:base="http://example.org/invalid/">
<head>
<title>Test 0109</title>
</head>
<body>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0109.html> <http://purl.org/dc/elements/1.1/title> "Test 0109" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xml:base="http://example.org/invalid/">
<head>
<title>Test 0109</title>
</head>
<body>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0109.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0109" .
}
Test 0110: bNode generated even though no nested @about exists

Tests to make sure that a bNode is generated even though no nested @about exists.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0110.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0110.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0110.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
FILTER isBlank(?a)
}
Test 0111: two bNodes generated after three levels of nesting

Tests to make sure that two bNodes are generated after three levels of nesting and that the last div does not generate a triple.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0111</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0111.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
?a <http://www.w3.org/1999/xhtml/vocab#next> ?b .
FILTER (isBlank(?a) && isBlank(?b) )
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0111</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0111.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
?a <http://www.w3.org/1999/xhtml/vocab#next> ?b .
FILTER (isBlank(?a) && isBlank(?b) )
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0111</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0111.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
?a <http://www.w3.org/1999/xhtml/vocab#next> ?b .
FILTER (isBlank(?a) && isBlank(?b) )
}
Test 0112: plain literal with datatype=""

Checks to make sure that the RDFa parser emits a plain literal when the datatype is specified as "".

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:ex="http://example.org/">
<head>
<title>Test 0112</title>
</head>
<body>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "not an XML Literal,\nwhitespace preserved\n" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/">
<head>
<title>Test 0112</title>
</head>
<body>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "not an XML Literal,\nwhitespace preserved\n" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/">
<head>
<title>Test 0112</title>
</head>
<body>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "not an XML Literal,\nwhitespace preserved\n" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://example.org/">
<head>
<title>Test 0112</title>
</head>
<body>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
</body>
</root>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "not an XML Literal,\nwhitespace preserved\n" .
}
Test 0113: element with @property and no child nodes generates empty plain literal

Checks to make sure that an element with @property and no child nodes generates empty plain literal.

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0113</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0113.xhtml#a> <http://purl.org/dc/elements/1.1/title> "" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0113.xhtml#b> <http://purl.org/dc/elements/1.1/title> "" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0113</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0113.xml#a> <http://purl.org/dc/elements/1.1/title> "" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0113.xml#b> <http://purl.org/dc/elements/1.1/title> "" .
}
Test 0114: Relative URI dot-segment removal

Checks to make sure that a relative URI is resolved correctly according to RFC3986, section 5 (even when the relative URI is invalid, in this case).

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:cc="http://creativecommons.org/ns#"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#">
<head>
<title>Test 0114</title>
</head>
<body>
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.html">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX cc: <http://creativecommons.org/ns#>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0114.html>
xhv:index <http://rdfa.info/test-suite/#>;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>;
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/>;
cc:attributionURL <http://rdfa.info/>;
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0114.html?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>.
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:cc="http://creativecommons.org/ns#"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#">
<head>
<title>Test 0114</title>
</head>
<body>
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.xhtml">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX cc: <http://creativecommons.org/ns#>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0114.xhtml>
xhv:index <http://rdfa.info/test-suite/#>;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0115.xhtml>;
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/>;
cc:attributionURL <http://rdfa.info/>;
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0114.xhtml?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>.
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://creativecommons.org/ns#"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#">
<head>
<title>Test 0114</title>
</head>
<body>
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.xhtml">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX cc: <http://creativecommons.org/ns#>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0114.xhtml>
xhv:index <http://rdfa.info/test-suite/#>;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>;
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/>;
cc:attributionURL <http://rdfa.info/>;
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0114.xhtml?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>.
}
Test 0115: XML Entities must be supported by RDFa parser

Checks to make sure that XML Entities are treated properly by the RDFa parser.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:ex="http://www.example.com/">
<head>
<title>Test 0115</title>
</head>
<body>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>
<http://www.example.com/entity1>
">" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>
<http://www.example.com/entity2>
"Ben & Co." .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>
<http://www.example.com/entity3>
"@" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>
<http://www.example.com/entity4>
"@" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://www.example.com/">
<head>
<title>Test 0115</title>
</head>
<body>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0115.xhtml>
<http://www.example.com/entity1>
">" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0115.xhtml>
<http://www.example.com/entity2>
"Ben & Co." .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0115.xhtml>
<http://www.example.com/entity3>
"@" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0115.xhtml>
<http://www.example.com/entity4>
"@" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://www.example.com/">
<head>
<title>Test 0115</title>
</head>
<body>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>
<http://www.example.com/entity1>
">" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>
<http://www.example.com/entity2>
"Ben & Co." .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>
<http://www.example.com/entity3>
"@" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>
<http://www.example.com/entity4>
"@" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://www.example.com/">
<head>
<title>Test 0115</title>
</head>
<body>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0115.xml>
<http://www.example.com/entity1>
">" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0115.xml>
<http://www.example.com/entity2>
"Ben & Co." .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0115.xml>
<http://www.example.com/entity3>
"@" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0115.xml>
<http://www.example.com/entity4>
"@" .
}
Test 0117: Fragment identifiers stripped from BASE

Checks to make sure that fragment identifiers are stripped from [base] when used to generate triples.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/tc117.xhtml#fragment"></base>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0117" .
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/contributor> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/tc117.xhtml#fragment"></base>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0117" .
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/contributor> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/tc117.xhtml#fragment"></base>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0117" .
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/contributor> "Mark Birbeck" .
}
Test 0118: empty string "" is not equivalent to NULL - @about

Checks to make sure that the empty string "" isn't considered as NULL in languages such as Javascript when generating triples. This test sets the subject in a chain using @href and then immediately changes the subject using @about and generates a triple. A buggy parser may use the @href subject (http://example.org/javascript.html) instead of the one defined by @about.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0118</title>
</head>
<body>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
</body>

</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0118.html>
<http://purl.org/dc/elements/1.1/creator>
"Ben" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0118</title>
</head>
<body>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
</body>

</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0118.xhtml>
<http://purl.org/dc/elements/1.1/creator>
"Ben" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0118</title>
</head>
<body>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
</body>

</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0118.xhtml>
<http://purl.org/dc/elements/1.1/creator>
"Ben" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0118</title>
</head>
<body>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
</body>

</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0118.xml>
<http://purl.org/dc/elements/1.1/creator>
"Ben" .
}
Test 0119: "[prefix:]" CURIE format is valid

Checks to make sure that an RDFa processor expands CURIEs having only a prefix and a colon if a prefix is properly defined using xmlns.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0119</title>
</head>
<body>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
</body>

</html>
ASK WHERE {
<http://example.org/>
<http://purl.org/dc/elements/1.1/title>
"Example Website" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0119</title>
</head>
<body>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
</body>

</html>
ASK WHERE {
<http://example.org/>
<http://purl.org/dc/elements/1.1/title>
"Example Website" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0119</title>
</head>
<body>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
</body>

</html>
ASK WHERE {
<http://example.org/>
<http://purl.org/dc/elements/1.1/title>
"Example Website" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0119</title>
</head>
<body>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
</body>

</root>
ASK WHERE {
<http://example.org/>
<http://purl.org/dc/elements/1.1/title>
"Example Website" .
}
Test 0120: "[:]" CURIE format is valid

Checks to make sure that an RDFa processor expands CURIEs having only a colon to the default prefix "http://www.w3.org/1999/test-cases/vocab#".

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0120</title>
</head>
<body>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/1999/xhtml/vocab#>
<http://purl.org/dc/elements/1.1/title>
"The XHTML Vocabulary Document" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0120</title>
</head>
<body>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/1999/xhtml/vocab#>
<http://purl.org/dc/elements/1.1/title>
"The XHTML Vocabulary Document" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0120</title>
</head>
<body>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/1999/xhtml/vocab#>
<http://purl.org/dc/elements/1.1/title>
"The XHTML Vocabulary Document" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0120</title>
</head>
<body>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
</body>
</root>
ASK WHERE {
<http://www.w3.org/1999/xhtml/vocab#>
<http://purl.org/dc/elements/1.1/title>
"The XHTML Vocabulary Document" .
}
Test 0121: "[]" is a valid safe CURIE

Checks to make sure RDFa processors resolve the empty CURIE correctly. Note that this is not valid HTML due to recursive

elements.

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0121</title>
</head>
<body>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
</body>




</html>
ASK WHERE {
<http://example.org/> <http://purl.org/dc/elements/1.1/title> "Test Case 0121" .
<http://example.org/> <http://purl.org/dc/elements/1.1/contributor> "Shane McCarron" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0121</title>
</head>
<body>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
</body>




</html>
ASK WHERE {
<http://example.org/> <http://purl.org/dc/elements/1.1/title> "Test Case 0121" .
<http://example.org/> <http://purl.org/dc/elements/1.1/contributor> "Shane McCarron" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0121</title>
</head>
<body>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
</body>




</root>
ASK WHERE {
<http://example.org/> <http://purl.org/dc/elements/1.1/title> "Test Case 0121" .
<http://example.org/> <http://purl.org/dc/elements/1.1/contributor> "Shane McCarron" .
}
Test 0122: resource="[]" does not set the object

Checks to make sure that resource="[]" does not set the object since RDFa does not allow non-prefixed CURIEs.

Expected query to return false

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0122</title>
</head>
<body>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
</body>




</html>
# This is a negative test. No triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/section1.html> <http://www.w3.org/1999/xhtml/vocab#up> ?obj .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0122</title>
</head>
<body>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
</body>




</html>
# This is a negative test. No triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/section1.html> <http://www.w3.org/1999/xhtml/vocab#up> ?obj .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0122</title>
</head>
<body>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
</body>




</html>
# This is a negative test. No triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/section1.html> <http://www.w3.org/1999/xhtml/vocab#up> ?obj .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0122</title>
</head>
<body>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
</body>




</root>
# This is a negative test. No triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/section1.html> <http://www.w3.org/1999/xhtml/vocab#up> ?obj .
}
Test 0126: Multiple @typeof values

Checks to ensure that multiple (white space separated) values in @typeof trigger multiple rdf:type triples.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dct="http://purl.org/dc/terms/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0126</title>
</head>
<body>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#Post> .
<http://www.example.org/#article> <http://purl.org/dc/terms/title> "My article" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dct="http://purl.org/dc/terms/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0126</title>
</head>
<body>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#Post> .
<http://www.example.org/#article> <http://purl.org/dc/terms/title> "My article" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dct="http://purl.org/dc/terms/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0126</title>
</head>
<body>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#Post> .
<http://www.example.org/#article> <http://purl.org/dc/terms/title> "My article" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dct="http://purl.org/dc/terms/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0126</title>
</head>
<body>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#Post> .
<http://www.example.org/#article> <http://purl.org/dc/terms/title> "My article" .
}
Test 0131: Whitespace alternatives in attributes

Ensures that multiple whitespace alternatives in attributes are allowed.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test</title>
<link rel="xhv:next&#x20;xhv:prev&#x09;xhv:first&#x0a;xhv:last&#x0d;xhv:subsection" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#prev> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#first> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#last> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#subsection> <http://example.org/test.css> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test</title>
<link rel="xhv:next&#x20;xhv:prev&#x09;xhv:first&#x0a;xhv:last&#x0d;xhv:subsection" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#first> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#last> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#subsection> <http://example.org/test.css> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test</title>
<link rel="xhv:next&#x20;xhv:prev&#x09;xhv:first&#x0a;xhv:last&#x0d;xhv:subsection" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#first> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#last> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#subsection> <http://example.org/test.css> .
}
Test 0134: Uppercase reserved words

Ensures that mixed-case reserved words generate triples.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="LICENSE" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0134.html> <http://www.w3.org/1999/xhtml/vocab#license> <http://example.org/test.css> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test</title>
<link rel="LICENSE" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0134.xhtml> <http://www.w3.org/1999/xhtml/vocab#license> <http://example.org/test.css> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<link rel="LICENSE" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0134.xhtml> <http://www.w3.org/1999/xhtml/vocab#license> <http://example.org/test.css> .
}
Test 0140: Blank nodes identifiers are not allowed as predicates

The RDF data model does not allow blank node identifiers in predicates. This test ensures that RDFa processors do not emit invalid triples.

Expected query to return false

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Blank-node as Predicate Test</title>
</head>
<body>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
</body>
</html>
# This is a negative test, no triples containing "Test" should be generated. 
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0140.html> ?p "Test".
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Blank-node as Predicate Test</title>
</head>
<body>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
</body>
</html>
# This is a negative test, no triples containing "Test" should be generated. 
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0140.xhtml> ?p "Test".
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Blank-node as Predicate Test</title>
</head>
<body>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
</body>
</html>
# This is a negative test, no triples containing "Test" should be generated. 
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0140.xhtml> ?p "Test".
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Blank-node as Predicate Test</title>
</head>
<body>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
</body>
</root>
# This is a negative test, no triples containing "Test" should be generated. 
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0140.xml> ?p "Test".
}
Test 0147: xmlns prefix 'xmlzzz' (reserved)

Ensures that RDFa processors allow the prefix 'xmlzzz', even though it is a reserved prefix in XML.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0147.html> <http://example.org/test> "Test".
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0147.xhtml> <http://example.org/test> "Test".
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0147.xhtml> <http://example.org/test> "Test".
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0147.xml> <http://example.org/test> "Test".
}
Test 0172: @datatype="" generates plain literal in presence of child nodes

Checks to ensure that when @datatype="" is used on an element that contains child nodes, that the literal that is generated is a plain literal.

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/terms#">
<head>
<title>Test 0172</title>
<base href="http://example.org/"/>
</head>
<body xml:lang="en">
<p property="ex:prop" datatype="">A <strong>plain literal</strong> with a lang tag.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "A plain literal with a lang tag."@en .
}
Test 0173: @xml:lang="" clears language setting

Checks to ensure that when @xml:lang="" is used that any parent element language setting is cleared and a language-less literal is generated.

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/terms#">
<head>
<title>Test 0173</title>
<base href="http://example.org/"/>
</head>
<body xml:lang="en">
<p property="ex:prop" xml:lang="">Just a plain literal.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "Just a plain literal." .
<http://example.org/> <http://example.org/terms#prop> ?plain .
FILTER(lang(?plain) = "")
}
Test 0174: Support single character prefix in CURIEs

Checks to ensure that the RDFa processor correctly processes single character prefixes when processing CURIEs.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:v="http://www.w3.org/2006/vcard/ns#">
<head>
<title>Test 0174</title>
</head>
<body>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
</body>

</html>
ASK WHERE {
<http://example.org/jd> <http://www.w3.org/2006/vcard/ns#fn> "John Doe" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:v="http://www.w3.org/2006/vcard/ns#">
<head>
<title>Test 0174</title>
</head>
<body>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
</body>

</html>
ASK WHERE {
<http://example.org/jd> <http://www.w3.org/2006/vcard/ns#fn> "John Doe" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="http://www.w3.org/2006/vcard/ns#">
<head>
<title>Test 0174</title>
</head>
<body>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
</body>

</html>
ASK WHERE {
<http://example.org/jd> <http://www.w3.org/2006/vcard/ns#fn> "John Doe" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:v="http://www.w3.org/2006/vcard/ns#">
<head>
<title>Test 0174</title>
</head>
<body>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
</body>

</root>
ASK WHERE {
<http://example.org/jd> <http://www.w3.org/2006/vcard/ns#fn> "John Doe" .
}
Test 0175: IRI for @property is allowed

Checks to make sure that a URI may be used as a @property value

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0175</title>
</head>
<body>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
FILTER isBlank(?a)
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0175</title>
</head>
<body>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
FILTER isBlank(?a)
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0175</title>
</head>
<body>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
FILTER isBlank(?a)
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0175</title>
</head>
<body>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
</body>
</root>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
FILTER isBlank(?a)
}
Test 0176: IRI for @rel and @rev is allowed

Checks to make sure that a URI may be used as @rel and @rev values

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0176</title>
</head>
<body>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
</body>


</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:gregg@kellogg-assoc.com> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
?b <http://xmlns.com/foaf/0.1/knows> ?a .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0176</title>
</head>
<body>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
</body>


</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:gregg@kellogg-assoc.com> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
?b <http://xmlns.com/foaf/0.1/knows> ?a .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0176</title>
</head>
<body>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
</body>


</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:gregg@kellogg-assoc.com> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
?b <http://xmlns.com/foaf/0.1/knows> ?a .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0176</title>
</head>
<body>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
</body>


</root>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:gregg@kellogg-assoc.com> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
?b <http://xmlns.com/foaf/0.1/knows> ?a .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test 0177: Test @prefix

Checks to make sure @prefix with a single entry creates a URI mapping

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0177</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0177</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0177</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test 0178: Test @prefix with multiple mappings

Checks to make sure @prefix with multiple entires creates multiple URI mappings

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0178</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0178</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0178</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent" .
}
Test 0179: Test @prefix vs @xmlns priority

Checks to make sure @prefix has a higher priority than @xmlns

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0179</title>
<base href="http://example.org/"/>
</head>
<body>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0179</title>
<base href="http://example.org/"/>
</head>
<body>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0179</title>
<base href="http://example.org/"/>
</head>
<body>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test 0180: Test @prefix with empty mapping

Checks to make sure @prefix with empty prefix does not create a mapping.

Expected query to return false

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0180</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0180</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0180</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0180</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
</body>
</root>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test 0181: Test default XHTML vocabulary

Checks Tests a CURIE with default namespace uses XHTML Vocabulary namespace.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0181</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0181</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0181</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0181</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test 0182: Test prefix locality

Checks to be sure that prefixes are defined within the element hierarchy.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0182</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0182</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0182</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}
Test 0183: Test @xmlns redefines @prefix

A new @xmlns definition should override a previous @prefix definition at this element.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0183</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0183</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0183</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}
Test 0186: @vocab after subject declaration

Check that @vocab establishes a new default vocabulary when declared on the same element as a subject declaration via @about.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0186</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0186</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0186</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test 0187: @vocab redefinition

Check that a more deeply nested @vocab attribute overloads a previous @vocab definition.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0187</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0187</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0187</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test 0188: @vocab only affects predicates

Check that @vocab definitions on parent elements only affect predicate establishment.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0188</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0188</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0188</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test 0189: @vocab overrides default term

Check that @vocab changes a default term from XHV. Lookup checks default vocabulary before local term mappings.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0189</title>
</head>
<body>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.example.org/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0189</title>
</head>
<body>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.example.org/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0189</title>
</head>
<body>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.example.org/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test 0190: Test term case insensitivity

Check to ensure a mixed case term matches a case insensitive definition

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0190</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0190</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0190</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test 0196: Test process explicit XMLLiteral

XMLLiteral must be explicitly specified, otherwise a normal untyped literal is created

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0196</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
</body>
</html>
# Some parsers may generate XML Literals that differ from the ones
# shown below. The only requirement for XML Literal tests is that
# the RDF graph that is generated is equivalent to the one expressed
# in the XHTML (preservation of whitespace and namespaces that are
# utilized in the XML Literal).

ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> "This is an XMLLiteral"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org> <http://example.org/rdf/plainlit> "This is a plain literal" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0196</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
</body>
</html>
# Some parsers may generate XML Literals that differ from the ones
# shown below. The only requirement for XML Literal tests is that
# the RDF graph that is generated is equivalent to the one expressed
# in the XHTML (preservation of whitespace and namespaces that are
# utilized in the XML Literal).

ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> "This is an XMLLiteral"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org> <http://example.org/rdf/plainlit> "This is a plain literal" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0196</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
</body>
</html>
# Some parsers may generate XML Literals that differ from the ones
# shown below. The only requirement for XML Literal tests is that
# the RDF graph that is generated is equivalent to the one expressed
# in the XHTML (preservation of whitespace and namespaces that are
# utilized in the XML Literal).

ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> "This is an XMLLiteral"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org> <http://example.org/rdf/plainlit> "This is a plain literal" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0196</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
</body>
</root>
# Some parsers may generate XML Literals that differ from the ones
# shown below. The only requirement for XML Literal tests is that
# the RDF graph that is generated is equivalent to the one expressed
# in the XHTML (preservation of whitespace and namespaces that are
# utilized in the XML Literal).

ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> "This is an XMLLiteral"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org> <http://example.org/rdf/plainlit> "This is a plain literal" .
}
Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI

TERMorCURIEorAbsURI requires an absolute URI

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/terms/">
<head>
<title>Test 0197</title>
<base href="http://www.example.org/me" />
</head>
<body>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/me> <http://purl.org/dc/terms/language> "Ruby" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/terms/">
<head>
<title>Test 0197</title>
<base href="http://www.example.org/me" />
</head>
<body>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/me> <http://purl.org/dc/terms/language> "Ruby" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/terms/">
<head>
<title>Test 0197</title>
<base href="http://www.example.org/me" />
</head>
<body>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/me> <http://purl.org/dc/terms/language> "Ruby" .
}
Test 0198: datatype XMLLiteral with other embedded RDFa

Checks to ensure that when datatype is the default the parser generates triples for embedded content.

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0198</title>
<base href="http://www.example.org/me" />
</head>
<body>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/me#mark> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/name>
"<span property=\"foaf:firstName\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">Mark</span> <span property=\"foaf:surname\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">Birbeck</span>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/firstName> "Mark" .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/surname> "Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0198</title>
<base href="http://www.example.org/me" />
</head>
<body>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/me#mark> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/name>
"<span property=\"foaf:firstName\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">Mark</span> <span property=\"foaf:surname\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">Birbeck</span>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/firstName> "Mark" .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/surname> "Birbeck" .
}
Test 0201: Expressing an attribute using @property

Tests @property to establish the predicate; literal object is in the content of the element.

Expected query to return true

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg width="12cm" height="4cm" viewBox="0 0 1200 400"
xmlns:dc="http://purl.org/dc/terms/"
xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny">
<desc property="dc:description">A yellow rectangle with sharp corners.</desc>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />

</svg>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0201.svg> <http://purl.org/dc/terms/description> "A yellow rectangle with sharp corners." .
}
Test 0202: Tests to ensure @xml:base used in SVG

Tests to make sure that @xml:base is used in SVG+RDFa, XML+RDFa.

Expected query to return true

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg width="12cm" height="4cm" viewBox="0 0 1200 400"
xml:base="http://example.com/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns="http://www.w3.org/2000/svg">
version="1.2"
baseProfile="tiny"
<desc property="dc:description">A yellow rectangle with sharp corners.</desc>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />
</svg>
ASK WHERE {
<http://example.com/> <http://purl.org/dc/terms/description> "A yellow rectangle with sharp corners." .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root width="12cm" height="4cm" viewBox="0 0 1200 400"
xml:base="http://example.com/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns="http://www.w3.org/2000/svg">
version="1.2"
baseProfile="tiny"
<desc property="dc:description">A yellow rectangle with sharp corners.</desc>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />
</root>
ASK WHERE {
<http://example.com/> <http://purl.org/dc/terms/description> "A yellow rectangle with sharp corners." .
}
Test 0203: Tests to ensure @xml:base, XML+RDFa used in non-root elements in SVG

Tests to make sure that @xml:base is used in non-root elements in SVG+RDFa, XML+RDFa.

Expected query to return true

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg width="12cm" height="4cm" viewBox="0 0 1200 400"
xml:base="http://example.com/not-this-one/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns="http://www.w3.org/2000/svg">
version="1.2"
baseProfile="tiny"
<desc about="" xml:base="http://example.com/" property="dc:description">A yellow rectangle with sharp corners.</desc>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />
</svg>
ASK WHERE {
<http://example.com/> <http://purl.org/dc/terms/description> "A yellow rectangle with sharp corners." .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root width="12cm" height="4cm" viewBox="0 0 1200 400"
xml:base="http://example.com/not-this-one/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns="http://www.w3.org/2000/svg">
version="1.2"
baseProfile="tiny"
<desc about="" xml:base="http://example.com/" property="dc:description">A yellow rectangle with sharp corners.</desc>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />
</root>
ASK WHERE {
<http://example.com/> <http://purl.org/dc/terms/description> "A yellow rectangle with sharp corners." .
}
Test 0206: Usage of Initial Context

Tests whether the default RDFa 1.1 context (which contains prefix definitions, among others, to the Semantic Web Standard vocabularies) is properly handled.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Default context test 0206</title>
</head>
<body>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
</body>

</html>
ASK WHERE {
<http://www.w3.org/2001/XMLSchema#maxExclusive> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#DatatypeProperty> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Default context test 0206</title>
</head>
<body>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
</body>

</html>
ASK WHERE {
<http://www.w3.org/2001/XMLSchema#maxExclusive> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#DatatypeProperty> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Default context test 0206</title>
</head>
<body>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
</body>

</html>
ASK WHERE {
<http://www.w3.org/2001/XMLSchema#maxExclusive> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#DatatypeProperty> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Default context test 0206</title>
</head>
<body>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
</body>

</root>
ASK WHERE {
<http://www.w3.org/2001/XMLSchema#maxExclusive> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#DatatypeProperty> .
}
Test 0207: Vevent using @typeof

Tests Vevent using @typeof (inlc. dtstart, dtend, etc.)

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/12/cal/icaltzd#Vevent> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#summary> "Weekend off in Iona" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2006-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtend> "2006-10-23"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#url> <http://freetime.example.org/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#location> "Iona, UK" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0207.xhtml#event1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/12/cal/icaltzd#Vevent> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#summary> "Weekend off in Iona" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2006-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtend> "2006-10-23"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#url> <http://freetime.example.org/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#location> "Iona, UK" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/12/cal/icaltzd#Vevent> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#summary> "Weekend off in Iona" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2006-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtend> "2006-10-23"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#url> <http://freetime.example.org/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#location> "Iona, UK" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0207.xml#event1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/12/cal/icaltzd#Vevent> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0207.xml#event1> <http://www.w3.org/2002/12/cal/icaltzd#summary> "Weekend off in Iona" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0207.xml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2006-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0207.xml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtend> "2006-10-23"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0207.xml#event1> <http://www.w3.org/2002/12/cal/icaltzd#url> <http://freetime.example.org/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0207.xml#event1> <http://www.w3.org/2002/12/cal/icaltzd#location> "Iona, UK" .
}
Test 0213: Datatype generation for a literal with XML content, version 1.1

In RDFa 1.1, even if a literal contains XML elements, and no explicit datatype is set, the result is plain literal

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0213</title>
</head>
<body>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>

</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0213</title>
</head>
<body>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>

</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0213</title>
</head>
<body>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>

</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0213</title>
</head>
<body>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>

</root>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time" .
}
Test 0214: Root element has implicit @about=""

All documents have an implicit @about=""

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0214.html> a <http://xmlns.com/foaf/0.1/Document>;
<http://purl.org/dc/terms/title> "Test 0214" .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</svg>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0214.svg> a <http://xmlns.com/foaf/0.1/Document>;
<http://purl.org/dc/terms/title> "Test 0214" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0214.xhtml> a <http://xmlns.com/foaf/0.1/Document>;
<http://purl.org/dc/terms/title> "Test 0214" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0214.xhtml> a <http://xmlns.com/foaf/0.1/Document>;
<http://purl.org/dc/terms/title> "Test 0214" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0214.xml> a <http://xmlns.com/foaf/0.1/Document>;
<http://purl.org/dc/terms/title> "Test 0214" .
}
Test 0216: Proper character encoding detection in spite of large headers

Character encoding should work even in view of a large set of characters as attributes in the header, ie, when content sniffing may not work to establish encoding.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix = "
air: http://www.daml.org/2001/10/html/airport-ont#
bio: http://vocab.org/bio/0.1/
contact: http://www.w3.org/2000/10/swap/pim/contact#
dc: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
ical: http://www.w3.org/2002/12/cal/icaltzd#
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
rel: http://vocab.org/relationship/
openid: http://xmlns.openid.net/auth#
rss: http://web.resource.org/rss/1.0/
sioc: http://rdfs.org/sioc/ns#
xsd: http://www.w3.org/2001/XMLSchema#
google: http://rdf.data-vocabulary.org/#
rsa: http://www.w3.org/ns/auth/rsa#
cert: http://www.w3.org/ns/auth/cert#
wot: http://xmlns.com/wot/0.1/
">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> <http://xmlns.com/foaf/0.1/name> "Iván" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix = "
air: http://www.daml.org/2001/10/html/airport-ont#
bio: http://vocab.org/bio/0.1/
contact: http://www.w3.org/2000/10/swap/pim/contact#
dc: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
ical: http://www.w3.org/2002/12/cal/icaltzd#
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
rel: http://vocab.org/relationship/
openid: http://xmlns.openid.net/auth#
rss: http://web.resource.org/rss/1.0/
sioc: http://rdfs.org/sioc/ns#
xsd: http://www.w3.org/2001/XMLSchema#
google: http://rdf.data-vocabulary.org/#
rsa: http://www.w3.org/ns/auth/rsa#
cert: http://www.w3.org/ns/auth/cert#
wot: http://xmlns.com/wot/0.1/
">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> <http://xmlns.com/foaf/0.1/name> "Iván" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix = "
air: http://www.daml.org/2001/10/html/airport-ont#
bio: http://vocab.org/bio/0.1/
contact: http://www.w3.org/2000/10/swap/pim/contact#
dc: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
ical: http://www.w3.org/2002/12/cal/icaltzd#
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
rel: http://vocab.org/relationship/
openid: http://xmlns.openid.net/auth#
rss: http://web.resource.org/rss/1.0/
sioc: http://rdfs.org/sioc/ns#
xsd: http://www.w3.org/2001/XMLSchema#
google: http://rdf.data-vocabulary.org/#
rsa: http://www.w3.org/ns/auth/rsa#
cert: http://www.w3.org/ns/auth/cert#
wot: http://xmlns.com/wot/0.1/
">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> <http://xmlns.com/foaf/0.1/name> "Iván" .
}
Test 0217: @vocab causes rdfa:usesVocabulary triple to be added

When encountering @vocab, a processor generates a triple with the base URI, rdfa:usesVocabulary and the IRI of the added vocabulary.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0217</title>
<base href="http://example.org/"/>
</head>
<body>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
<http://example.org/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://xmlns.com/foaf/0.1/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0217</title>
<base href="http://example.org/"/>
</head>
<body>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
<http://example.org/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://xmlns.com/foaf/0.1/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0217</title>
<base href="http://example.org/"/>
</head>
<body>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
<http://example.org/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://xmlns.com/foaf/0.1/> .
}
Test 0218: @inlist to create empty list

@inlist on @rel with no incomplete triples creates an empty list.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
</body>
</svg>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
}
Test 0219: @inlist with literal

@inlist with @property creates a list having a literal as a single element.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo") .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</svg>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo") .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo") .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo") .
}
Test 0220: @inlist with IRI

@inlist with @rel and @href creates a list having an IRI as a single element.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0220.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo>) .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</svg>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0220.svg>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo>) .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0220.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo>) .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0220.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo>) .
}
Test 0221: @inlist with hetrogenious membership

@inlist with @rel and @property creates a list with both IRI and Literal elements.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0221</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0221.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" <foo>) .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0221</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</svg>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0221.svg>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" <foo>) .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0221</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0221.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" <foo>) .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0221</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0221.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" <foo>) .
}
Test 0222: @inlist with multi-level elements

@inlist with @property at different levels of descendence creates single list.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0222</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0222.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar") .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0222</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
</body>
</svg>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0222.svg>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar") .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0222</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0222.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar") .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0222</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0222.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar") .
}
Test 0223: @inlist with non-list property

Use of predicate with @inlist and without @inlist creates both list and non-list triples.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0223</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0223.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar"), "Baz" .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0223</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
</body>
</svg>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0223.svg>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar"), "Baz" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0223</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0223.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar"), "Baz" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0223</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0223.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar"), "Baz" .
}
Test 0224: @inlist hanging @rel

Use of @rel and @inlist with decendent IRI elements creates list

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0224</title>
</head>
<body>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0224.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo> <bar>) .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0224</title>
</head>
<body>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
</body>
</svg>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0224.svg>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo> <bar>) .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0224</title>
</head>
<body>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0224.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo> <bar>) .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0224</title>
</head>
<body>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0224.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo> <bar>) .
}
Test 0225: @inlist on different elements with same subject

@inlist with same property and subject on different elements creates multiple lists

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0225</title>
</head>
<body>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0225.html>
ASK WHERE {
<foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo"), ("Bar") .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0225</title>
</head>
<body>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
</body>
</svg>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0225.svg>
ASK WHERE {
<foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo"), ("Bar") .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0225</title>
</head>
<body>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0225.xhtml>
ASK WHERE {
<foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo"), ("Bar") .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0225</title>
</head>
<body>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0225.xhtml>
ASK WHERE {
<foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo"), ("Bar") .
}
Test 0226: confusion between multiple implicit collections (resource)

Use of @inlist with implicit subject uses different list

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0226</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0226.html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0226</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</svg>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0226.svg>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0226</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0226.xhtml>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0226</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0226.xhtml>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}
Test 0227: confusion between multiple implicit collections (about)

Use of @inlist with implicit subject uses different list

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0227</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0227.html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0227</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</svg>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0227.svg>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0227</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0227.xhtml>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0227</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0227.xhtml>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}
Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test

@src is a lower priority than @resource

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0228</title>
<!-- Based on 1.1 semantics for 0040 -->
</head>
<body>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://www.w3.org/1999/xhtml/vocab#alternate> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0228.html> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0228</title>
<!-- Based on 1.1 semantics for 0040 -->
</head>
<body>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://www.w3.org/1999/xhtml/vocab#alternate> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0228.xhtml> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0228</title>
<!-- Based on 1.1 semantics for 0040 -->
</head>
<body>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://www.w3.org/1999/xhtml/vocab#alternate> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0228.xhtml> .
}
Test 0229: img[@src] test with omitted @about

Tests if a @src (in img element) does not set the URIref object (with omitted @about) -- from 0042

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0042</title>
</head>
<body>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0229.html> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0042</title>
</head>
<body>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0229.xhtml> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0042</title>
</head>
<body>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0229.xhtml> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0042</title>
</head>
<body>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0229.xml> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}
Test 0230: @src does not set a new subject (@rel/@href)

Tests to ensure that @src does not set a new subject (oposite of 0090 for 1.0).

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0230</title>
</head>
<body>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0230.html> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0230</title>
</head>
<body>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0230.xhtml> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0230</title>
</head>
<body>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0230.xhtml> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}
Test 0231: Set image license information

Tests new behavior of @src in 1.1

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0231</title>
</head>
<body>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0231</title>
</head>
<body>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0231</title>
</head>
<body>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}
Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046);

Tests @typeof with @rel present, no @href, @resource, or @about creates a BNode object

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0232</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0232.html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

ASK WHERE {
<> foaf:maker ?a .
?a a foaf:Person;
foaf:name "John Doe" .
FILTER ( isBlank(?a) )
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0232</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0232.xhtml>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

ASK WHERE {
<> foaf:maker ?a .
?a a foaf:Person;
foaf:name "John Doe" .
FILTER ( isBlank(?a) )
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0232</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0232.xhtml>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

ASK WHERE {
<> foaf:maker ?a .
?a a foaf:Person;
foaf:name "John Doe" .
FILTER ( isBlank(?a) )
}
Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047)

Tests @typeof with @rel and @resource present, no @about adds type to object

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0233</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0233.html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

ASK WHERE {
<> foaf:maker <http://www.example.org/#me> .
<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0233</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0233.xhtml>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

ASK WHERE {
<> foaf:maker <http://www.example.org/#me> .
<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0233</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0233.xhtml>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

ASK WHERE {
<> foaf:maker <http://www.example.org/#me> .
<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
}
Test 0234: All defined HTML link relation values

Tests to ensure that all defined linked relations expand

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0234</title>
</head>
<body>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX powder: <http://www.w3.org/2007/05/powder-s#>
PREFIX ex: <http://example.org/>
ASK WHERE {
?s powder:describedby ex:describedby;
xhv:license ex:license;
xhv:role ex:role
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0234</title>
</head>
<body>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
</body>
</svg>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX powder: <http://www.w3.org/2007/05/powder-s#>
PREFIX ex: <http://example.org/>
ASK WHERE {
?s powder:describedby ex:describedby;
xhv:license ex:license;
xhv:role ex:role
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0234</title>
</head>
<body>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX powder: <http://www.w3.org/2007/05/powder-s#>
PREFIX ex: <http://example.org/>
ASK WHERE {
?s powder:describedby ex:describedby;
xhv:license ex:license;
xhv:role ex:role
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0234</title>
</head>
<body>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX powder: <http://www.w3.org/2007/05/powder-s#>
PREFIX ex: <http://example.org/>
ASK WHERE {
?s powder:describedby ex:describedby;
xhv:license ex:license;
xhv:role ex:role
}
Test 0235: rdfagraph='processor' does not generate standard triples

Setting rdfagraph query parameter to 'processor' does not output standard triples

Expected query to return false

Test files for XML+RDFa 1.1 Processor Graph:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0235</title>
</head>
<body>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
</body>
</root>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/xml> dc:title "rdfagraph" .
}
Test 0236: rdfagraph='processor' with a markup error generates rdfa:Error

Setting rdfagraph query parameter to 'processor' generates an rdf:Error

Expected query to return true

Test files for XML+RDFa 1.1 Processor Graph:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0236</title>
</head>
<body which is not closed should generate a processor error</root>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
ASK WHERE { ?s a rdfa:Error }
Test 0237: rdfagraph='processor' with invalid SafeCURIE generates rdfa:Warning

Setting rdfagraph query parameter to 'processor' generates an rdf:Warning when given a SafeCURIE with an invalid prefix.

Expected query to return true

Test files for XML+RDFa 1.1 Processor Graph:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0237</title>
</head>
<body prefix="$malformed http://example.com"
property="rdf:value"
resource="[$malformed:curie]">
Malformed Prefix
</body>
</root>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
ASK WHERE { ?s a rdfa:UnresolvedCURIE }
Test 0238: rdfagraph='processor' with missing Term definition generates rdfa:Warning

Setting rdfagraph query parameter to 'processor' generates an rdf:Warning when given a missing Term definition.

Expected query to return true

Test files for XML+RDFa 1.1 Processor Graph:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0238</title>
</head>
<body property="undefined_term">
Undefined Term
</body>
</root>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
ASK WHERE { ?s a rdfa:UnresolvedTerm }
Test 0239: rdfagraph='processor' with undefined prefix generates rdfa:Warning

Setting rdfagraph query parameter to 'processor' generates an rdf:Warning when given a SafeCURIE with an undefined prefix.

Expected query to return true

Test files for XML+RDFa 1.1 Processor Graph:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0239</title>
</head>
<body property="rdf:value"
resource="[undefined:curie]">
Undefined Prefix
</body>
</root>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
ASK WHERE { ?s a rdfa:UnresolvedCURIE }
Test 0240: vocab_expansion='true' expands sub-property

A property having an rdfs:subPropertyOf relationship defined in an in-use vocabulary causes triples to be added to the referenced property.

Expected query to return true

Test files for XML+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0240</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the property <code property="subProp" resource="rdfatest:subProp">subProp</code>
should cause a triple with <code>baseProp</code> to be added.
</body>
</root>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s rdfatest:subProp rdfatest:subProp;
rdfatest:baseProp rdfatest:subProp
}
Test 0241: vocab_expansion='true' expands equivalent-property

A property having an owl:equivalentProperty relationship defined in an in-use vocabulary causes triples to be added to the referenced property.

Expected query to return true

Test files for XML+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0241</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the property <code property="eqProp" resource="rdfatest:eqProp">eqProp</code>
should cause a triple with <code>baseProp</code> to be added.
</body>
</root>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s rdfatest:eqProp rdfatest:eqProp;
rdfatest:baseProp rdfatest:eqProp
}
Test 0242: vocab_expansion='true' expands referenced equivalent-property

A property which is the target of another property having an owl:equivalentProperty relationship defined in an in-use vocabulary causes triples to be added to the defining property.

Expected query to return true

Test files for XML+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0242</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the property <code property="baseProp" resource="rdfatest:eqProp">eqProp</code>
should cause a triple with <code>eqProp</code> to be added.
</body>
</root>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s rdfatest:eqProp rdfatest:eqProp;
rdfatest:baseProp rdfatest:eqProp
}
Test 0243: vocab_expansion='true' expands sub-class

A property having an rdfs:subClassOf relationship defined in an in-use vocabulary causes triples to be added to the referenced class.

Expected query to return true

Test files for XML+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0243</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the type <code about="_:a" typeof="SubClass">SubClass</code>
should cause a triple with <code>BaseClass</code> to be added.
</body>
</root>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s a rdfatest:SubClass, rdfatest:BaseClass
}
Test 0244: vocab_expansion='true' expands equivalent-class

A class having an owl:equivalentClass relationship defined in an in-use vocabulary causes triples to be added to the referenced class.

Expected query to return true

Test files for XML+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0244</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the type <code about="_:a" typeof="EqClass">EqClass</code>
should cause a triple with <code>BaseClass</code> to be added.
</body>
</root>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s a rdfatest:EqClass, rdfatest:BaseClass
}
Test 0245: vocab_expansion='true' expands referenced equivalent-class

A class which is the target of another class having an owl:equivalentClass relationship defined in an in-use vocabulary causes triples to be added to the defining class.

Expected query to return true

Test files for XML+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0245</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the type <code about="_:a" typeof="BaseClass">BaseClass</code>
should cause a triple with <code>EqClass</code> to be added.
</body>
</root>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s a rdfatest:EqClass, rdfatest:BaseClass
}
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version

Tests if hanging @rel creates multiple triples with @typeof permutation

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0246</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
<p typeof="foaf:Person"><span property="foaf:name">Ivan Herman</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0246</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
<p typeof="foaf:Person"><span property="foaf:name">Ivan Herman</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0246</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
<p typeof="foaf:Person"><span property="foaf:name">Ivan Herman</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0246</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
<p typeof="foaf:Person"><span property="foaf:name">Ivan Herman</span></p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test 0247: Multiple incomplete triples, RDFa 1.1version

Tests multiple ways of handling incomplete triples; the first two triples should use the same bnode as subject ('merged'). The third should have a separate bNode.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0247</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
[ <http://xmlns.com/foaf/0.1/name> "Ivan Herman";
<http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> ],
[ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Mark Birbeck" ] .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0247</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
[ <http://xmlns.com/foaf/0.1/name> "Ivan Herman";
<http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> ],
[ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Mark Birbeck" ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0247</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
[ <http://xmlns.com/foaf/0.1/name> "Ivan Herman";
<http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> ],
[ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Mark Birbeck" ] .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0247</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
[ <http://xmlns.com/foaf/0.1/name> "Ivan Herman";
<http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> ],
[ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Mark Birbeck" ] .
}
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version

Tests multiple ways of handling incomplete triples, this time with @rev

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0248</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0248</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0248</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0248</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</root>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version

Tests multiple ways of handling incomplete triples, this time with both @rel and @rev

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0249</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0249</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0249</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0249</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property

Tests that @typeof is clearly bound to @about, and @property therefore creates a Literal object

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0250</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<p about ="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> a <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0250</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<p about ="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> a <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0250</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<p about ="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> a <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0250</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<p about ="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</body>
</root>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> a <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test 0251: lang

Tests lang

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix="ex: http://example.org/">
<head about="">
<title>Test 251</title>
<meta about="http://example.org/node" property="ex:property" lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/">
<head about="">
<title>Test 251</title>
<meta about="http://example.org/node" property="ex:property" lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/">
<head about="">
<title>Test 251</title>
<meta about="http://example.org/node" property="ex:property" lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test 0252: lang inheritance

Tests lang inheritance

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix="ex: http://example.org/">
<head about="" lang="fr">
<title lang="en">Test 0252</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/">
<head about="" lang="fr">
<title lang="en">Test 0252</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/">
<head about="" lang="fr">
<title lang="en">Test 0252</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test 0253: plain literal with datatype="" and lang preservation

Checks to make sure that the RDFa parser emits a plain literal when the datatype is specified as "" and preserves the xml:lang value. The text, with control characters and whitespace preserved, reads "Greek white space ".

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix="ex: http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "ελληνικό\nάσπρο διάστημα\n"@el .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "ελληνικό\nάσπρο διάστημα\n"@el .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "ελληνικό\nάσπρο διάστημα\n"@el .
}
Test 0254: @datatype="" generates plain literal in presence of child nodes

Checks to ensure that when @datatype="" is used on an element that contains child nodes, that the literal that is generated is a plain literal.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix="ex: http://example.org/terms#">
<head>
<title>Test 0254</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" datatype="">A <strong>plain literal</strong> with a lang tag.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "A plain literal with a lang tag."@en .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0254</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" datatype="">A <strong>plain literal</strong> with a lang tag.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "A plain literal with a lang tag."@en .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0254</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" datatype="">A <strong>plain literal</strong> with a lang tag.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "A plain literal with a lang tag."@en .
}
Test 0255: lang="" clears language setting

Checks to ensure that when lang="" is used that any parent element language setting is cleared and a language-less literal is generated.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix="ex: http://example.org/terms#">
<head>
<title>Test 0255</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" lang="">Just a plain literal.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "Just a plain literal." .
<http://example.org/> <http://example.org/terms#prop> ?plain .
FILTER(lang(?plain) = "")
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0255</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" lang="">Just a plain literal.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "Just a plain literal." .
<http://example.org/> <http://example.org/terms#prop> ?plain .
FILTER(lang(?plain) = "")
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0255</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" lang="">Just a plain literal.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "Just a plain literal." .
<http://example.org/> <http://example.org/terms#prop> ?plain .
FILTER(lang(?plain) = "")
}
Test 0256: lang and xml:lang on the same element

Tests @xml:lang and @lang on the same element with different values; @xml:lang should prevail.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix="ex: http://example.org/">
<head about="">
<title>Test 0256</title>
<meta about="http://example.org/node" property="ex:property" xml:lang="fr" lang="hu" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/">
<head about="">
<title>Test 0256</title>
<meta about="http://example.org/node" property="ex:property" xml:lang="fr" lang="hu" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/">
<head about="">
<title>Test 0256</title>
<meta about="http://example.org/node" property="ex:property" xml:lang="fr" lang="hu" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113)

Checks to make sure that an element with @property and no child nodes generates empty plain literal.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0257</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0257.html#a> <http://purl.org/dc/elements/1.1/title> "" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0257</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0257.xhtml#a> <http://purl.org/dc/elements/1.1/title> "" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0257</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0257.xhtml#a> <http://purl.org/dc/elements/1.1/title> "" .
}
Test 0258: The underscore character is not allowed as a prefix or in xmlns

Ensures that a prefix cannot start with an underscore character when specified using xmlns or prefix.

Expected query to return false

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Undescore Prefix is Ignored Test</title>
</head>
<body>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
</body>
</html>
# This is a negative test, the triple shown below should not be generated.
PREFIX earl: <http://www.w3.org/ns/earl#>
PREFIX ex: <http://example.org/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0258.html> ?p ex:test .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Undescore Prefix is Ignored Test</title>
</head>
<body>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
</body>
</html>
# This is a negative test, the triple shown below should not be generated.
PREFIX earl: <http://www.w3.org/ns/earl#>
PREFIX ex: <http://example.org/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0258.xhtml> ?p ex:test .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Undescore Prefix is Ignored Test</title>
</head>
<body>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
</body>
</html>
# This is a negative test, the triple shown below should not be generated.
PREFIX earl: <http://www.w3.org/ns/earl#>
PREFIX ex: <http://example.org/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0258.xhtml> ?p ex:test .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Undescore Prefix is Ignored Test</title>
</head>
<body>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
</body>
</root>
# This is a negative test, the triple shown below should not be generated.
PREFIX earl: <http://www.w3.org/ns/earl#>
PREFIX ex: <http://example.org/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0258.xml> ?p ex:test .
}
Test 0259: XML+RDFa Initial Context

All processors must load the RDFa Core Initial Context.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
</body></html>
ASK WHERE {
?s <http://www.w3.org/2003/g/data-view#> "GRDDL";
<http://www.w3.org/ns/ma-ont#> "MA";
<http://www.w3.org/2002/07/owl#> "OWL";
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "RDF";
<http://www.w3.org/ns/rdfa#> "RDFa";
<http://www.w3.org/2000/01/rdf-schema#> "RDFS";
<http://www.w3.org/2007/rif#> "RIF";
<http://www.w3.org/2004/02/skos/core#> "SKOS";
<http://www.w3.org/2008/05/skos-xl#> "SKOS-XL";
<http://www.w3.org/2007/05/powder#> "WDR";
<http://rdfs.org/ns/void#> "VOID";
<http://www.w3.org/2007/05/powder-s#> "WDRS";
<http://www.w3.org/1999/xhtml/vocab#> "XHV";
<http://www.w3.org/XML/1998/namespace> "XML";
<http://www.w3.org/2001/XMLSchema#> "XSD";

# Widely Used prefixes
<http://creativecommons.org/ns#> "CC";
<http://commontag.org/ns#> "CTAG";
<http://purl.org/dc/terms/> "DC", "DCTERMS";
<http://xmlns.com/foaf/0.1/> "FOAF";
<http://purl.org/goodrelations/v1#> "GR";
<http://www.w3.org/2002/12/cal/icaltzd#> "ICAL";
<http://ogp.me/ns#> "OG";
<http://purl.org/stuff/rev#> "REV";
<http://rdfs.org/sioc/ns#> "SIOC";
<http://rdf.data-vocabulary.org/#> "V";
<http://www.w3.org/2006/vcard/ns#> "VCARD";
<http://schema.org/> "Schema";

# Vocabulary Terms
<http://www.w3.org/2007/05/powder-s#describedby> "DescribedBy";
<http://www.w3.org/1999/xhtml/vocab#license> "License";
<http://www.w3.org/1999/xhtml/vocab#role> "Role";
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
</body></svg>
ASK WHERE {
?s <http://www.w3.org/2003/g/data-view#> "GRDDL";
<http://www.w3.org/ns/ma-ont#> "MA";
<http://www.w3.org/2002/07/owl#> "OWL";
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "RDF";
<http://www.w3.org/ns/rdfa#> "RDFa";
<http://www.w3.org/2000/01/rdf-schema#> "RDFS";
<http://www.w3.org/2007/rif#> "RIF";
<http://www.w3.org/2004/02/skos/core#> "SKOS";
<http://www.w3.org/2008/05/skos-xl#> "SKOS-XL";
<http://www.w3.org/2007/05/powder#> "WDR";
<http://rdfs.org/ns/void#> "VOID";
<http://www.w3.org/2007/05/powder-s#> "WDRS";
<http://www.w3.org/1999/xhtml/vocab#> "XHV";
<http://www.w3.org/XML/1998/namespace> "XML";
<http://www.w3.org/2001/XMLSchema#> "XSD";

# Widely Used prefixes
<http://creativecommons.org/ns#> "CC";
<http://commontag.org/ns#> "CTAG";
<http://purl.org/dc/terms/> "DC", "DCTERMS";
<http://xmlns.com/foaf/0.1/> "FOAF";
<http://purl.org/goodrelations/v1#> "GR";
<http://www.w3.org/2002/12/cal/icaltzd#> "ICAL";
<http://ogp.me/ns#> "OG";
<http://purl.org/stuff/rev#> "REV";
<http://rdfs.org/sioc/ns#> "SIOC";
<http://rdf.data-vocabulary.org/#> "V";
<http://www.w3.org/2006/vcard/ns#> "VCARD";
<http://schema.org/> "Schema";

# Vocabulary Terms
<http://www.w3.org/2007/05/powder-s#describedby> "DescribedBy";
<http://www.w3.org/1999/xhtml/vocab#license> "License";
<http://www.w3.org/1999/xhtml/vocab#role> "Role";
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
</body></html>
ASK WHERE {
?s <http://www.w3.org/2003/g/data-view#> "GRDDL";
<http://www.w3.org/ns/ma-ont#> "MA";
<http://www.w3.org/2002/07/owl#> "OWL";
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "RDF";
<http://www.w3.org/ns/rdfa#> "RDFa";
<http://www.w3.org/2000/01/rdf-schema#> "RDFS";
<http://www.w3.org/2007/rif#> "RIF";
<http://www.w3.org/2004/02/skos/core#> "SKOS";
<http://www.w3.org/2008/05/skos-xl#> "SKOS-XL";
<http://www.w3.org/2007/05/powder#> "WDR";
<http://rdfs.org/ns/void#> "VOID";
<http://www.w3.org/2007/05/powder-s#> "WDRS";
<http://www.w3.org/1999/xhtml/vocab#> "XHV";
<http://www.w3.org/XML/1998/namespace> "XML";
<http://www.w3.org/2001/XMLSchema#> "XSD";

# Widely Used prefixes
<http://creativecommons.org/ns#> "CC";
<http://commontag.org/ns#> "CTAG";
<http://purl.org/dc/terms/> "DC", "DCTERMS";
<http://xmlns.com/foaf/0.1/> "FOAF";
<http://purl.org/goodrelations/v1#> "GR";
<http://www.w3.org/2002/12/cal/icaltzd#> "ICAL";
<http://ogp.me/ns#> "OG";
<http://purl.org/stuff/rev#> "REV";
<http://rdfs.org/sioc/ns#> "SIOC";
<http://rdf.data-vocabulary.org/#> "V";
<http://www.w3.org/2006/vcard/ns#> "VCARD";
<http://schema.org/> "Schema";

# Vocabulary Terms
<http://www.w3.org/2007/05/powder-s#describedby> "DescribedBy";
<http://www.w3.org/1999/xhtml/vocab#license> "License";
<http://www.w3.org/1999/xhtml/vocab#role> "Role";
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
</body></html>
ASK WHERE {
?s <http://www.w3.org/2003/g/data-view#> "GRDDL";
<http://www.w3.org/ns/ma-ont#> "MA";
<http://www.w3.org/2002/07/owl#> "OWL";
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "RDF";
<http://www.w3.org/ns/rdfa#> "RDFa";
<http://www.w3.org/2000/01/rdf-schema#> "RDFS";
<http://www.w3.org/2007/rif#> "RIF";
<http://www.w3.org/2004/02/skos/core#> "SKOS";
<http://www.w3.org/2008/05/skos-xl#> "SKOS-XL";
<http://www.w3.org/2007/05/powder#> "WDR";
<http://rdfs.org/ns/void#> "VOID";
<http://www.w3.org/2007/05/powder-s#> "WDRS";
<http://www.w3.org/1999/xhtml/vocab#> "XHV";
<http://www.w3.org/XML/1998/namespace> "XML";
<http://www.w3.org/2001/XMLSchema#> "XSD";

# Widely Used prefixes
<http://creativecommons.org/ns#> "CC";
<http://commontag.org/ns#> "CTAG";
<http://purl.org/dc/terms/> "DC", "DCTERMS";
<http://xmlns.com/foaf/0.1/> "FOAF";
<http://purl.org/goodrelations/v1#> "GR";
<http://www.w3.org/2002/12/cal/icaltzd#> "ICAL";
<http://ogp.me/ns#> "OG";
<http://purl.org/stuff/rev#> "REV";
<http://rdfs.org/sioc/ns#> "SIOC";
<http://rdf.data-vocabulary.org/#> "V";
<http://www.w3.org/2006/vcard/ns#> "VCARD";
<http://schema.org/> "Schema";

# Vocabulary Terms
<http://www.w3.org/2007/05/powder-s#describedby> "DescribedBy";
<http://www.w3.org/1999/xhtml/vocab#license> "License";
<http://www.w3.org/1999/xhtml/vocab#role> "Role";
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
</body></root>
ASK WHERE {
?s <http://www.w3.org/2003/g/data-view#> "GRDDL";
<http://www.w3.org/ns/ma-ont#> "MA";
<http://www.w3.org/2002/07/owl#> "OWL";
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "RDF";
<http://www.w3.org/ns/rdfa#> "RDFa";
<http://www.w3.org/2000/01/rdf-schema#> "RDFS";
<http://www.w3.org/2007/rif#> "RIF";
<http://www.w3.org/2004/02/skos/core#> "SKOS";
<http://www.w3.org/2008/05/skos-xl#> "SKOS-XL";
<http://www.w3.org/2007/05/powder#> "WDR";
<http://rdfs.org/ns/void#> "VOID";
<http://www.w3.org/2007/05/powder-s#> "WDRS";
<http://www.w3.org/1999/xhtml/vocab#> "XHV";
<http://www.w3.org/XML/1998/namespace> "XML";
<http://www.w3.org/2001/XMLSchema#> "XSD";

# Widely Used prefixes
<http://creativecommons.org/ns#> "CC";
<http://commontag.org/ns#> "CTAG";
<http://purl.org/dc/terms/> "DC", "DCTERMS";
<http://xmlns.com/foaf/0.1/> "FOAF";
<http://purl.org/goodrelations/v1#> "GR";
<http://www.w3.org/2002/12/cal/icaltzd#> "ICAL";
<http://ogp.me/ns#> "OG";
<http://purl.org/stuff/rev#> "REV";
<http://rdfs.org/sioc/ns#> "SIOC";
<http://rdf.data-vocabulary.org/#> "V";
<http://www.w3.org/2006/vcard/ns#> "VCARD";
<http://schema.org/> "Schema";

# Vocabulary Terms
<http://www.w3.org/2007/05/powder-s#describedby> "DescribedBy";
<http://www.w3.org/1999/xhtml/vocab#license> "License";
<http://www.w3.org/1999/xhtml/vocab#role> "Role";
}
Test 0260: XHTML+RDFa Initial Context

XHTML+RDFa initial context.

Expected query to return true

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
</body></html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>

ASK WHERE {
[
# Vocabulary Terms
xhv:alternate "alternate";
xhv:appendix "appendix";
xhv:cite "cite";
xhv:bookmark "bookmark";
xhv:contents "contents";
xhv:chapter "chapter";
xhv:copyright "copyright";
xhv:first "first";
xhv:glossary "glossary";
xhv:help "help";
xhv:icon "icon";
xhv:index "index";
xhv:last "last";
xhv:license "license";
xhv:meta "meta";
xhv:next "next";
xhv:prev "prev";
xhv:previous "previous";
xhv:section "section";
xhv:start "start";
xhv:stylesheet "stylesheet";
xhv:subsection "subsection";
xhv:top "top";
xhv:up "up";

# Other terms
xhv:p3pv1 "p3pv1"
]
}
Test 0261: White space preservation in XMLLiteral

Whitespace must be maintained in an XMLLiteral, too

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0261</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> """This is
an XMLLiteral"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0261</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> """This is
an XMLLiteral"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0261</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> """This is
an XMLLiteral"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0261</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> """This is
an XMLLiteral"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
}
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value

Tests @property to establish the predicate; literal object is in the content of the element. There are extra whitespaces before and after the property attribute value which should be ignored

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0262</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0262</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0262</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0262</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test 0263: @property appearing on the html element yields the base as the subject

@property appearing on the html element without @content or @datatype yields the base as the subject

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0263.html> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0263.xhtml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0263.xhtml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0263.xml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test 0264: @property appearing on the head element gets the subject from , ie, parent

@property appearing on the head element gets the subject from , ie, parent

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0264.html> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0264.xhtml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0264.xhtml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0264.xml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test 0265: @property appearing on the head element gets the subject from , ie, parent

@property appearing on the head element gets the subject from , ie, parent; in this case the parent subject is explicitly set via @about

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html about="http://www.example.com">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0265</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://www.example.com> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" about="http://www.example.com">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0265</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://www.example.com> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" about="http://www.example.com">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0265</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://www.example.com> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root about="http://www.example.com">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0265</title>
</head>
<body>
<p> </p>
</body>
</root>
ASK WHERE {
<http://www.example.com> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof

@property without @content or @datatype, typed object set by @href and @typeof

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0266</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0266</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0266</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0266</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
</body>
</root>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof

@property without @content or @datatype, typed object set by @resource and @typeof

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0267</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0267</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0267</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0267</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
</body>
</root>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof

@property without @content or @datatype, typed object set by @src and @typeof

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0268</title>
</head>
<body>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.ivan-herman.net/foaf#me> foaf:depiction <http://www.ivan-herman.net/Images/me2003-small.png> .
<http://www.ivan-herman.net/Images/me2003-small.png> a foaf:Image .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0268</title>
</head>
<body>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.ivan-herman.net/foaf#me> foaf:depiction <http://www.ivan-herman.net/Images/me2003-small.png> .
<http://www.ivan-herman.net/Images/me2003-small.png> a foaf:Image .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0268</title>
</head>
<body>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.ivan-herman.net/foaf#me> foaf:depiction <http://www.ivan-herman.net/Images/me2003-small.png> .
<http://www.ivan-herman.net/Images/me2003-small.png> a foaf:Image .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0268</title>
</head>
<body>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
</body>
</root>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

ASK WHERE {
<http://www.ivan-herman.net/foaf#me> foaf:depiction <http://www.ivan-herman.net/Images/me2003-small.png> .
<http://www.ivan-herman.net/Images/me2003-small.png> a foaf:Image .
}
Test 0269: Use of @property in HEAD without explicit subject

@property appearing on the html element without @content or @datatype yields the base as the subject, also with @content

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0269.html> rdfs:comment "This is an RDFa test" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0269.xhtml> rdfs:comment "This is an RDFa test" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0269.xhtml> rdfs:comment "This is an RDFa test" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</root>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0269.xml> rdfs:comment "This is an RDFa test" .
}
Test 0271: Use of @property in HEAD with explicit parent subject via @about

@property appearing on the head element gets the subject from parent, also with @content and explicit @about at the top

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html about="http://www.example.org/">
<head property="rdfs:comment" content="This is an RDFa test">
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://www.example.org/> rdfs:comment "This is an RDFa test" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" about="http://www.example.org/">
<head property="rdfs:comment" content="This is an RDFa test">
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://www.example.org/> rdfs:comment "This is an RDFa test" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" about="http://www.example.org/">
<head property="rdfs:comment" content="This is an RDFa test">
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://www.example.org/> rdfs:comment "This is an RDFa test" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root about="http://www.example.org/">
<head property="rdfs:comment" content="This is an RDFa test">
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</root>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://www.example.org/> rdfs:comment "This is an RDFa test" .
}
Test 0272: time element with @datetime an xsd:date

The @datetime attribute is used when generating output with valid xsd:date.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0272</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18Z"^^xsd:date ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0272</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18Z"^^xsd:date ] .
}
Test 0273: time element with @datetime an xsd:time

The @datetime attribute is used when generating output with valid xsd:time.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0273</title>
</head>
<body>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "00:00:00Z"^^xsd:time ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0273</title>
</head>
<body>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "00:00:00Z"^^xsd:time ] .
}
Test 0274: time element with @datetime an xsd:dateTime

The @datetime attribute is used when generating output with valid xsd:dateTime.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0274</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0274</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime ] .
}
Test 0275: time element with value an xsd:date

The time element value is used when generating output with valid xsd:date.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18Z"^^xsd:date ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18Z"^^xsd:date ] .
}
Test 0276: time element with value an xsd:time

The time element value is used when generating output with valid xsd:time.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">00:00:00Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "00:00:00Z"^^xsd:time ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">00:00:00Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "00:00:00Z"^^xsd:time ] .
}
Test 0277: time element with value an xsd:dateTime

The time element value is used when generating output with valid xsd:dateTime.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0277</title>
</head>
<body>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0277</title>
</head>
<body>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime ] .
}
Test 0278: @datetime overrides @content

The @datetime attribute must be utilized when generating output, overriding any value expressed using the @content attribute.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0278</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18"^^xsd:date ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0278</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18"^^xsd:date ] .
}
Test 0279: @datatype used with @datetime overrides default datatype

If @datatype is specified, it must override the automatic datatype.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0279</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:date ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0279</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:date ] .
}
Test 0280: time element with @datetime an xsd:duration

The @datetime attribute is used when generating output with valid xsd:duration.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0280</title>
</head>
<body>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "P2011Y06M28DT00H00M00S"^^xsd:duration ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0280</title>
</head>
<body>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "P2011Y06M28DT00H00M00S"^^xsd:duration ] .
}
Test 0281: time element with @datetime an xsd:gYear

The @datetime attribute is used when generating output with valid xsd:gYear.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0281</title>
</head>
<body>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012"^^xsd:gYear ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0281</title>
</head>
<body>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012"^^xsd:gYear ] .
}
Test 0282: time element with @datetime an xsd:gYearMonth

The @datetime attribute is used when generating output with valid xsd:gYearMonth.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0282</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03"^^xsd:gYearMonth ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0282</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03"^^xsd:gYearMonth ] .
}
Test 0283: time element with @datetime an invalid datatype generates plain literal

If the lexical scope of @datetime does not exactly match a known datatype a plain literal is generated.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0283</title>
</head>
<body>
<time property="rdf:value"> 2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value " 2012-03-18Z" ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0283</title>
</head>
<body>
<time property="rdf:value"> 2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value " 2012-03-18Z" ] .
}
Test 0284: time element not matching datatype but with explicit @datatype

A time element with an unmatched value still generates a typed literal without modification given a @datatype attribute.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0284</title>
</head>
<body>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value " 2012-03-18Z"^^xsd:dateTime ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0284</title>
</head>
<body>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value " 2012-03-18Z"^^xsd:dateTime ] .
}
Test 0285: time element with @datetime an invalid datatype and in scope @lang generates plain literal with language

If no @datatype is specified and the value does not match a xsd:dateTime, xsd:date, or xsd:time pattern, a plain literal must be generated with the associated language of the node, if available.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0285</title>
</head>
<body>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
[ rdf:value "D-Day"@en ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0285</title>
</head>
<body>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
[ rdf:value "D-Day"@en ] .
}
Test 0286: @value attribute overrides @content

the HTML5 @value attribute must be utilized when generating output. If @value is detected, it must override and be processed according to the rules for @content.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0286</title>
</head>
<body>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
[ rdf:value "veni, vidi, vici"@lat ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0286</title>
</head>
<body>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
[ rdf:value "veni, vidi, vici"@lat ] .
}
Test 0287: time element with @datetime an xsd:dateTime with TZ offset

The @datetime attribute is used when generating output with valid xsd:dateTime and a Time Zone offset.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0287</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18T00:00:00-08:00"^^xsd:dateTime ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0287</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

ASK WHERE {
[ rdf:value "2012-03-18T00:00:00-08:00"^^xsd:dateTime ] .
}
Test 0289: @href becomes subject when @property and @content are present

When @property and @content are present but @about, @rel and @rev are not, @href is used as subject.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0289</title>
</head>
<body>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.org/> rdf:value "value" .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0289</title>
</head>
<body>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</svg>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.org/> rdf:value "value" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0289</title>
</head>
<body>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.org/> rdf:value "value" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0289</title>
</head>
<body>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.org/> rdf:value "value" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0289</title>
</head>
<body>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</root>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.org/> rdf:value "value" .
}
Test 0290: @href becomes subject when @property and @datatype are present

When @property and @datatype are present but @about, @rel and @rev are not, @href is used as subject and element content is used as an object literal.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0290</title>
</head>
<body>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
#<http://example.org/> rdf:value <http://example.org/> .
<http://example.org/> rdf:value "value" .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0290</title>
</head>
<body>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
</body>
</svg>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
#<http://example.org/> rdf:value <http://example.org/> .
<http://example.org/> rdf:value "value" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0290</title>
</head>
<body>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
#<http://example.org/> rdf:value <http://example.org/> .
<http://example.org/> rdf:value "value" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0290</title>
</head>
<body>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
#<http://example.org/> rdf:value <http://example.org/> .
<http://example.org/> rdf:value "value" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0290</title>
</head>
<body>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
</body>
</root>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
#<http://example.org/> rdf:value <http://example.org/> .
<http://example.org/> rdf:value "value" .
}
Test 0291: @href as subject overridden by @about

When @property, @datatype, @href and @about are present but @rel and @rev are not, @about is used as subject.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0291</title>
</head>
<body>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value" .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0291</title>
</head>
<body>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</svg>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0291</title>
</head>
<body>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0291</title>
</head>
<body>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0291</title>
</head>
<body>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</root>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value" .
}
Test 0292: @about overriding @href as subject is used as parent resource

When @property, @datatype, @href and @about are present but @rel and @rev are not, @about is used as subject and is also applied to nested descriptions.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0292</title>
</head>
<body>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value one", "value two" .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0292</title>
</head>
<body>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
</body>
</svg>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value one", "value two" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0292</title>
</head>
<body>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value one", "value two" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0292</title>
</head>
<body>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value one", "value two" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0292</title>
</head>
<body>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
</body>
</root>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

ASK WHERE {
<http://example.net/> rdf:value "value one", "value two" .
}
Test 0293: Testing the ':' character usage in a CURIE

RDFa 1.1 CURIE allows the ':' to appear in the reference part of a CURIE.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0293</title>
</head>
<body>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://www.example.org/column:test> "Test" .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0293</title>
</head>
<body>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
</body>
</svg>
ASK WHERE {
<http://www.example.org> <http://www.example.org/column:test> "Test" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0293</title>
</head>
<body>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://www.example.org/column:test> "Test" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0293</title>
</head>
<body>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://www.example.org/column:test> "Test" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0293</title>
</head>
<body>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
</body>
</root>
ASK WHERE {
<http://www.example.org> <http://www.example.org/column:test> "Test" .
}
Test 0295: Benchmark test

Complex benchmark document.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
xmlns:bio="http://vocab.org/bio/0.1/"
xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:cert="http://www.w3.org/ns/auth/cert#"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:example="http://example.org/"
xmlns:ex="http://example.org/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:google="http://rdf.data-vocabulary.org/#"
xmlns:ical="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:openid="http://xmlns.openid.net/auth#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rel="http://vocab.org/relationship/"
xmlns:rsa="http://www.w3.org/ns/auth/rsa#"
xmlns:rss="http://web.resource.org/rss/1.0/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:v="http://www.w3.org/2006/vcard/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>RDFa 1.1 Benchmark File #1</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
<p></p>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div rel="foaf:maker" typeof="foaf:Document">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Document" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
<p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</div>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
<p>This is the first chapter in a series of chapters.</p>
<p>This is unit test #62. The next unit test is #63.</p>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
<p>This is test #66.</p>
<p>This is test #67.</p>
<p about="0067.html">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.html">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.html">Test 0069</span>.
</p>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
<p>
<a rel="alternate" href="http://example.org/alternate">alternate</a>
<a rel="appendix" href="http://example.org/appendix">appendix</a>
<a rel="bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel="cite" href="http://example.org/cite">cite</a>
<a rel="chapter" href="http://example.org/chapter">chapter</a>
<a rel="contents" href="http://example.org/contents">contents</a>
<a rel="copyright" href="http://example.org/copyright">copyright</a>
<a rel="glossary" href="http://example.org/glossary">glossary</a>
<a rel="help" href="http://example.org/help">help</a>
<a rel="icon" href="http://example.org/icon">icon</a>
<a rel="index" href="http://example.org/index">index</a>
<a rel="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="meta" href="http://example.org/meta">meta</a>
<a rel="next" href="http://example.org/next">next</a>
<a rel="p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel="prev" href="http://example.org/prev">prev</a>
<a rel="role" href="http://example.org/role">role</a>
<a rel="section" href="http://example.org/section">section</a>
<a rel="subsection" href="http://example.org/subsection">subsection</a>
<a rel="start" href="http://example.org/start">start</a>
<a rel="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.html">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.html">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.html">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.html">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.html">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.html">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.html">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.html">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.html">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.html">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.html">index</span>
<span about="http://example.org/first" rev="first"
href="0077.html">first</span>
<span about="http://example.org/last" rev="last"
href="0077.html">last</span>
<span about="http://example.org/license" rev="license"
href="0077.html">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.html">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.html">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.html">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.html">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.html">role</span>
<span about="http://example.org/section" rev="section"
href="0077.html">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.html">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.html">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.html">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.html">up</span>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
<div>
<img src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
<div rel="next"></div>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.html">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase2" href="http://example.org/foo/..">Corner Case #2</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
<!-- @prefix should be ignored in the RDFa 1.0 case -->
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- prefix has a higher priority than xmlns, but should be ignored because version is explicitly set to 1.0 -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri/" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- The version statement should be ignored with version set to 1.0 -->
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- In RDFa 1.0, if a literal contains XML elements, and no explicit datatype is set, the result is XMLLiteral -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p>This document has a title.</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
<p></p>
<p></p>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
<p></p>
<span about="#a" property="dc:title"></span>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
<p> </p>
<p> </p>
<p> </p>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
<p> </p>
<p> </p>
<p> </p>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
<time property="rdf:value">2012-03-18Z</time>
<time property="rdf:value">00:00:00Z</time>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
<time property="rdf:value"> 2012-03-18Z</time>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
<object property="rdf:value" data="http://example.com/"></object>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
<p>None of these triples should be generated in RDFa 1.0.</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
</div>
</body>
</html>
# Just test to see that some triples are generated
ASK WHERE {?s ?p ?o}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
xmlns:bio="http://vocab.org/bio/0.1/"
xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:cert="http://www.w3.org/ns/auth/cert#"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:example="http://example.org/"
xmlns:ex="http://example.org/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:google="http://rdf.data-vocabulary.org/#"
xmlns:ical="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:openid="http://xmlns.openid.net/auth#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rel="http://vocab.org/relationship/"
xmlns:rsa="http://www.w3.org/ns/auth/rsa#"
xmlns:rss="http://web.resource.org/rss/1.0/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:v="http://www.w3.org/2006/vcard/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>RDFa 1.1 Benchmark File #1</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
<p></p>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div rel="foaf:maker" typeof="foaf:Document">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Document" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
<p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</div>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
<p>This is the first chapter in a series of chapters.</p>
<p>This is unit test #62. The next unit test is #63.</p>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
<p>This is test #66.</p>
<p>This is test #67.</p>
<p about="0067.svg">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.svg">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.svg">Test 0069</span>.
</p>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
<p>
<a rel="alternate" href="http://example.org/alternate">alternate</a>
<a rel="appendix" href="http://example.org/appendix">appendix</a>
<a rel="bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel="cite" href="http://example.org/cite">cite</a>
<a rel="chapter" href="http://example.org/chapter">chapter</a>
<a rel="contents" href="http://example.org/contents">contents</a>
<a rel="copyright" href="http://example.org/copyright">copyright</a>
<a rel="glossary" href="http://example.org/glossary">glossary</a>
<a rel="help" href="http://example.org/help">help</a>
<a rel="icon" href="http://example.org/icon">icon</a>
<a rel="index" href="http://example.org/index">index</a>
<a rel="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="meta" href="http://example.org/meta">meta</a>
<a rel="next" href="http://example.org/next">next</a>
<a rel="p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel="prev" href="http://example.org/prev">prev</a>
<a rel="role" href="http://example.org/role">role</a>
<a rel="section" href="http://example.org/section">section</a>
<a rel="subsection" href="http://example.org/subsection">subsection</a>
<a rel="start" href="http://example.org/start">start</a>
<a rel="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.svg">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.svg">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.svg">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.svg">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.svg">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.svg">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.svg">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.svg">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.svg">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.svg">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.svg">index</span>
<span about="http://example.org/first" rev="first"
href="0077.svg">first</span>
<span about="http://example.org/last" rev="last"
href="0077.svg">last</span>
<span about="http://example.org/license" rev="license"
href="0077.svg">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.svg">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.svg">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.svg">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.svg">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.svg">role</span>
<span about="http://example.org/section" rev="section"
href="0077.svg">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.svg">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.svg">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.svg">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.svg">up</span>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
<div>
<img src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
<div rel="next"></div>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.svg">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase2" href="http://example.org/foo/..">Corner Case #2</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
<!-- @prefix should be ignored in the RDFa 1.0 case -->
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- prefix has a higher priority than xmlns, but should be ignored because version is explicitly set to 1.0 -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri/" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- The version statement should be ignored with version set to 1.0 -->
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- In RDFa 1.0, if a literal contains XML elements, and no explicit datatype is set, the result is XMLLiteral -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p>This document has a title.</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
<p></p>
<p></p>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
<p></p>
<span about="#a" property="dc:title"></span>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
<p> </p>
<p> </p>
<p> </p>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
<p> </p>
<p> </p>
<p> </p>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
<time property="rdf:value">2012-03-18Z</time>
<time property="rdf:value">00:00:00Z</time>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
<time property="rdf:value"> 2012-03-18Z</time>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
<object property="rdf:value" data="http://example.com/"></object>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
<p>None of these triples should be generated in RDFa 1.0.</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
</div>
</body>
</svg>
# Just test to see that some triples are generated
ASK WHERE {?s ?p ?o}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
xmlns:bio="http://vocab.org/bio/0.1/"
xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:cert="http://www.w3.org/ns/auth/cert#"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:example="http://example.org/"
xmlns:ex="http://example.org/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:google="http://rdf.data-vocabulary.org/#"
xmlns:ical="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:openid="http://xmlns.openid.net/auth#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rel="http://vocab.org/relationship/"
xmlns:rsa="http://www.w3.org/ns/auth/rsa#"
xmlns:rss="http://web.resource.org/rss/1.0/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:v="http://www.w3.org/2006/vcard/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>RDFa 1.1 Benchmark File #1</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
<p></p>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div rel="foaf:maker" typeof="foaf:Document">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Document" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
<p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</div>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
<p>This is the first chapter in a series of chapters.</p>
<p>This is unit test #62. The next unit test is #63.</p>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
<p>This is test #66.</p>
<p>This is test #67.</p>
<p about="0067.xhtml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.xhtml">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.xhtml">Test 0069</span>.
</p>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
<p>
<a rel="alternate" href="http://example.org/alternate">alternate</a>
<a rel="appendix" href="http://example.org/appendix">appendix</a>
<a rel="bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel="cite" href="http://example.org/cite">cite</a>
<a rel="chapter" href="http://example.org/chapter">chapter</a>
<a rel="contents" href="http://example.org/contents">contents</a>
<a rel="copyright" href="http://example.org/copyright">copyright</a>
<a rel="glossary" href="http://example.org/glossary">glossary</a>
<a rel="help" href="http://example.org/help">help</a>
<a rel="icon" href="http://example.org/icon">icon</a>
<a rel="index" href="http://example.org/index">index</a>
<a rel="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="meta" href="http://example.org/meta">meta</a>
<a rel="next" href="http://example.org/next">next</a>
<a rel="p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel="prev" href="http://example.org/prev">prev</a>
<a rel="role" href="http://example.org/role">role</a>
<a rel="section" href="http://example.org/section">section</a>
<a rel="subsection" href="http://example.org/subsection">subsection</a>
<a rel="start" href="http://example.org/start">start</a>
<a rel="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.xhtml">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.xhtml">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.xhtml">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.xhtml">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.xhtml">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.xhtml">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.xhtml">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.xhtml">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.xhtml">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.xhtml">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.xhtml">index</span>
<span about="http://example.org/first" rev="first"
href="0077.xhtml">first</span>
<span about="http://example.org/last" rev="last"
href="0077.xhtml">last</span>
<span about="http://example.org/license" rev="license"
href="0077.xhtml">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.xhtml">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.xhtml">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.xhtml">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.xhtml">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.xhtml">role</span>
<span about="http://example.org/section" rev="section"
href="0077.xhtml">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.xhtml">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.xhtml">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.xhtml">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.xhtml">up</span>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
<div>
<img src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
<div rel="next"></div>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.xhtml">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase2" href="http://example.org/foo/..">Corner Case #2</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
<!-- @prefix should be ignored in the RDFa 1.0 case -->
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- prefix has a higher priority than xmlns, but should be ignored because version is explicitly set to 1.0 -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri/" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- The version statement should be ignored with version set to 1.0 -->
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- In RDFa 1.0, if a literal contains XML elements, and no explicit datatype is set, the result is XMLLiteral -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p>This document has a title.</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
<p></p>
<p></p>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
<p></p>
<span about="#a" property="dc:title"></span>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
<p> </p>
<p> </p>
<p> </p>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
<p> </p>
<p> </p>
<p> </p>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
<time property="rdf:value">2012-03-18Z</time>
<time property="rdf:value">00:00:00Z</time>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
<time property="rdf:value"> 2012-03-18Z</time>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
<object property="rdf:value" data="http://example.com/"></object>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
<p>None of these triples should be generated in RDFa 1.0.</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
</div>
</body>
</html>
# Just test to see that some triples are generated
ASK WHERE {?s ?p ?o}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
xmlns:bio="http://vocab.org/bio/0.1/"
xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:cert="http://www.w3.org/ns/auth/cert#"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:example="http://example.org/"
xmlns:ex="http://example.org/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:google="http://rdf.data-vocabulary.org/#"
xmlns:ical="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:openid="http://xmlns.openid.net/auth#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rel="http://vocab.org/relationship/"
xmlns:rsa="http://www.w3.org/ns/auth/rsa#"
xmlns:rss="http://web.resource.org/rss/1.0/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:v="http://www.w3.org/2006/vcard/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>RDFa 1.1 Benchmark File #1</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
<p></p>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div rel="foaf:maker" typeof="foaf:Document">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Document" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
<p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</div>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
<p>This is the first chapter in a series of chapters.</p>
<p>This is unit test #62. The next unit test is #63.</p>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
<p>This is test #66.</p>
<p>This is test #67.</p>
<p about="0067.xhtml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.xhtml">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.xhtml">Test 0069</span>.
</p>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
<p>
<a rel="alternate" href="http://example.org/alternate">alternate</a>
<a rel="appendix" href="http://example.org/appendix">appendix</a>
<a rel="bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel="cite" href="http://example.org/cite">cite</a>
<a rel="chapter" href="http://example.org/chapter">chapter</a>
<a rel="contents" href="http://example.org/contents">contents</a>
<a rel="copyright" href="http://example.org/copyright">copyright</a>
<a rel="glossary" href="http://example.org/glossary">glossary</a>
<a rel="help" href="http://example.org/help">help</a>
<a rel="icon" href="http://example.org/icon">icon</a>
<a rel="index" href="http://example.org/index">index</a>
<a rel="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="meta" href="http://example.org/meta">meta</a>
<a rel="next" href="http://example.org/next">next</a>
<a rel="p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel="prev" href="http://example.org/prev">prev</a>
<a rel="role" href="http://example.org/role">role</a>
<a rel="section" href="http://example.org/section">section</a>
<a rel="subsection" href="http://example.org/subsection">subsection</a>
<a rel="start" href="http://example.org/start">start</a>
<a rel="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.xhtml">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.xhtml">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.xhtml">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.xhtml">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.xhtml">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.xhtml">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.xhtml">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.xhtml">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.xhtml">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.xhtml">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.xhtml">index</span>
<span about="http://example.org/first" rev="first"
href="0077.xhtml">first</span>
<span about="http://example.org/last" rev="last"
href="0077.xhtml">last</span>
<span about="http://example.org/license" rev="license"
href="0077.xhtml">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.xhtml">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.xhtml">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.xhtml">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.xhtml">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.xhtml">role</span>
<span about="http://example.org/section" rev="section"
href="0077.xhtml">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.xhtml">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.xhtml">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.xhtml">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.xhtml">up</span>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
<div>
<img src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
<div rel="next"></div>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.xhtml">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase2" href="http://example.org/foo/..">Corner Case #2</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
<!-- @prefix should be ignored in the RDFa 1.0 case -->
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- prefix has a higher priority than xmlns, but should be ignored because version is explicitly set to 1.0 -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri/" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- The version statement should be ignored with version set to 1.0 -->
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- In RDFa 1.0, if a literal contains XML elements, and no explicit datatype is set, the result is XMLLiteral -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p>This document has a title.</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
<p></p>
<p></p>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
<p></p>
<span about="#a" property="dc:title"></span>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
<p> </p>
<p> </p>
<p> </p>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
<p> </p>
<p> </p>
<p> </p>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
<time property="rdf:value">2012-03-18Z</time>
<time property="rdf:value">00:00:00Z</time>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
<time property="rdf:value"> 2012-03-18Z</time>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
<object property="rdf:value" data="http://example.com/"></object>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
<p>None of these triples should be generated in RDFa 1.0.</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
</div>
</body>
</html>
# Just test to see that some triples are generated
ASK WHERE {?s ?p ?o}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
xmlns:bio="http://vocab.org/bio/0.1/"
xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:cert="http://www.w3.org/ns/auth/cert#"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:example="http://example.org/"
xmlns:ex="http://example.org/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:google="http://rdf.data-vocabulary.org/#"
xmlns:ical="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:openid="http://xmlns.openid.net/auth#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rel="http://vocab.org/relationship/"
xmlns:rsa="http://www.w3.org/ns/auth/rsa#"
xmlns:rss="http://web.resource.org/rss/1.0/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:v="http://www.w3.org/2006/vcard/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>RDFa 1.1 Benchmark File #1</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
<p></p>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div rel="foaf:maker" typeof="foaf:Document">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Document" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
<p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</div>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
<p>This is the first chapter in a series of chapters.</p>
<p>This is unit test #62. The next unit test is #63.</p>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>

<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
<p>This is test #66.</p>
<p>This is test #67.</p>
<p about="0067.xml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.xml">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.xml">Test 0069</span>.
</p>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
<p>
<a rel="alternate" href="http://example.org/alternate">alternate</a>
<a rel="appendix" href="http://example.org/appendix">appendix</a>
<a rel="bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel="cite" href="http://example.org/cite">cite</a>
<a rel="chapter" href="http://example.org/chapter">chapter</a>
<a rel="contents" href="http://example.org/contents">contents</a>
<a rel="copyright" href="http://example.org/copyright">copyright</a>
<a rel="glossary" href="http://example.org/glossary">glossary</a>
<a rel="help" href="http://example.org/help">help</a>
<a rel="icon" href="http://example.org/icon">icon</a>
<a rel="index" href="http://example.org/index">index</a>
<a rel="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="meta" href="http://example.org/meta">meta</a>
<a rel="next" href="http://example.org/next">next</a>
<a rel="p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel="prev" href="http://example.org/prev">prev</a>
<a rel="role" href="http://example.org/role">role</a>
<a rel="section" href="http://example.org/section">section</a>
<a rel="subsection" href="http://example.org/subsection">subsection</a>
<a rel="start" href="http://example.org/start">start</a>
<a rel="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.xml">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.xml">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.xml">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.xml">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.xml">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.xml">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.xml">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.xml">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.xml">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.xml">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.xml">index</span>
<span about="http://example.org/first" rev="first"
href="0077.xml">first</span>
<span about="http://example.org/last" rev="last"
href="0077.xml">last</span>
<span about="http://example.org/license" rev="license"
href="0077.xml">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.xml">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.xml">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.xml">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.xml">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.xml">role</span>
<span about="http://example.org/section" rev="section"
href="0077.xml">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.xml">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.xml">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.xml">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.xml">up</span>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>

</div>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
<p>
<a rel=":alternate" href="http://example.org/alternate">alternate</a>
<a rel=":appendix" href="http://example.org/appendix">appendix</a>
<a rel=":bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel=":cite" href="http://example.org/cite">cite</a>
<a rel=":chapter" href="http://example.org/chapter">chapter</a>
<a rel=":contents" href="http://example.org/contents">contents</a>
<a rel=":copyright" href="http://example.org/copyright">copyright</a>
<a rel=":glossary" href="http://example.org/glossary">glossary</a>
<a rel=":help" href="http://example.org/help">help</a>
<a rel=":icon" href="http://example.org/icon">icon</a>
<a rel=":index" href="http://example.org/index">index</a>
<a rel=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</a>
<a rel=":meta" href="http://example.org/meta">meta</a>
<a rel=":next" href="http://example.org/next">next</a>
<a rel=":p3pv1" href="http://example.org/p3pv1">p3pv1</a>
<a rel=":prev" href="http://example.org/prev">prev</a>
<a rel=":role" href="http://example.org/role">role</a>
<a rel=":section" href="http://example.org/section">section</a>
<a rel=":subsection" href="http://example.org/subsection">subsection</a>
<a rel=":start" href="http://example.org/start">start</a>
<a rel=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
<div>
<img src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.

Lao Tzu: Tao Te Ching</p>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
<div rel="next"></div>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.xml">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase2" href="http://example.org/foo/..">Corner Case #2</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</span>
</p>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>

<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
<!-- @prefix should be ignored in the RDFa 1.0 case -->
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- prefix has a higher priority than xmlns, but should be ignored because version is explicitly set to 1.0 -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri/" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- The version statement should be ignored with version set to 1.0 -->
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- In RDFa 1.0, if a literal contains XML elements, and no explicit datatype is set, the result is XMLLiteral -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p>This document has a title.</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
<p></p>
<p></p>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
<p></p>
<span about="#a" property="dc:title"></span>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
<p> </p>
<p> </p>
<p> </p>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
<p> </p>
<p> </p>
<p> </p>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
<time property="rdf:value">2012-03-18Z</time>
<time property="rdf:value">00:00:00Z</time>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
<time property="rdf:value"> 2012-03-18Z</time>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
<object property="rdf:value" data="http://example.com/"></object>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
<p>None of these triples should be generated in RDFa 1.0.</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
</div>
</body>
</root>
# Just test to see that some triples are generated
ASK WHERE {?s ?p ?o}
Test 0296: @property does set parent object without @typeof

When @property is used with a resource attribute (@href, @resource, ...) it does not set parent object.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0296</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/"><span property="name">Gregg</span></a>
Knows
<ul>
<li property="knows" resource="http://example.com/niklas/#me" typeof="Person">
<a property="homepage" href="http://example.com/niklas/"><span property="name">Niklas</span></a>
</li>
<li property="knows" resource="http://example.com/stéphane/#me" typeof="Person">
<a property="homepage" href="http://example.com/stéphane/"><span property="name">Stéphane</span></a>
</li>
<li property="knows" resource="http://example.com/ivan/#me" typeof="Person">
<a property="homepage" href="http://example.com/ivan/"><span property="name">Ivan</span></a>
</li>
<li property="knows" resource="http://example.com/manu/#me" typeof="Person">
<a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
</li>
</ul>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg";
foaf:knows
<http://example.com/niklas/#me>,
<http://example.com/stéphane/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me> .
<http://example.com/niklas/#me> a foaf:Person; foaf:name "Niklas" .
<http://example.com/stéphane/#me> a foaf:Person; foaf:name "Stéphane" .
<http://example.com/ivan/#me> a foaf:Person; foaf:name "Ivan" .
<http://example.com/manu/#me> a foaf:Person; foaf:name "Manu" .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0296</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/"><span property="name">Gregg</span></a>
Knows
<ul>
<li property="knows" resource="http://example.com/niklas/#me" typeof="Person">
<a property="homepage" href="http://example.com/niklas/"><span property="name">Niklas</span></a>
</li>
<li property="knows" resource="http://example.com/stéphane/#me" typeof="Person">
<a property="homepage" href="http://example.com/stéphane/"><span property="name">Stéphane</span></a>
</li>
<li property="knows" resource="http://example.com/ivan/#me" typeof="Person">
<a property="homepage" href="http://example.com/ivan/"><span property="name">Ivan</span></a>
</li>
<li property="knows" resource="http://example.com/manu/#me" typeof="Person">
<a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
</li>
</ul>
</div>
</body>
</svg>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg";
foaf:knows
<http://example.com/niklas/#me>,
<http://example.com/stéphane/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me> .
<http://example.com/niklas/#me> a foaf:Person; foaf:name "Niklas" .
<http://example.com/stéphane/#me> a foaf:Person; foaf:name "Stéphane" .
<http://example.com/ivan/#me> a foaf:Person; foaf:name "Ivan" .
<http://example.com/manu/#me> a foaf:Person; foaf:name "Manu" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0296</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/"><span property="name">Gregg</span></a>
Knows
<ul>
<li property="knows" resource="http://example.com/niklas/#me" typeof="Person">
<a property="homepage" href="http://example.com/niklas/"><span property="name">Niklas</span></a>
</li>
<li property="knows" resource="http://example.com/stéphane/#me" typeof="Person">
<a property="homepage" href="http://example.com/stéphane/"><span property="name">Stéphane</span></a>
</li>
<li property="knows" resource="http://example.com/ivan/#me" typeof="Person">
<a property="homepage" href="http://example.com/ivan/"><span property="name">Ivan</span></a>
</li>
<li property="knows" resource="http://example.com/manu/#me" typeof="Person">
<a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
</li>
</ul>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg";
foaf:knows
<http://example.com/niklas/#me>,
<http://example.com/stéphane/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me> .
<http://example.com/niklas/#me> a foaf:Person; foaf:name "Niklas" .
<http://example.com/stéphane/#me> a foaf:Person; foaf:name "Stéphane" .
<http://example.com/ivan/#me> a foaf:Person; foaf:name "Ivan" .
<http://example.com/manu/#me> a foaf:Person; foaf:name "Manu" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0296</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/"><span property="name">Gregg</span></a>
Knows
<ul>
<li property="knows" resource="http://example.com/niklas/#me" typeof="Person">
<a property="homepage" href="http://example.com/niklas/"><span property="name">Niklas</span></a>
</li>
<li property="knows" resource="http://example.com/stéphane/#me" typeof="Person">
<a property="homepage" href="http://example.com/stéphane/"><span property="name">Stéphane</span></a>
</li>
<li property="knows" resource="http://example.com/ivan/#me" typeof="Person">
<a property="homepage" href="http://example.com/ivan/"><span property="name">Ivan</span></a>
</li>
<li property="knows" resource="http://example.com/manu/#me" typeof="Person">
<a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
</li>
</ul>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg";
foaf:knows
<http://example.com/niklas/#me>,
<http://example.com/stéphane/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me> .
<http://example.com/niklas/#me> a foaf:Person; foaf:name "Niklas" .
<http://example.com/stéphane/#me> a foaf:Person; foaf:name "Stéphane" .
<http://example.com/ivan/#me> a foaf:Person; foaf:name "Ivan" .
<http://example.com/manu/#me> a foaf:Person; foaf:name "Manu" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0296</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/"><span property="name">Gregg</span></a>
Knows
<ul>
<li property="knows" resource="http://example.com/niklas/#me" typeof="Person">
<a property="homepage" href="http://example.com/niklas/"><span property="name">Niklas</span></a>
</li>
<li property="knows" resource="http://example.com/stéphane/#me" typeof="Person">
<a property="homepage" href="http://example.com/stéphane/"><span property="name">Stéphane</span></a>
</li>
<li property="knows" resource="http://example.com/ivan/#me" typeof="Person">
<a property="homepage" href="http://example.com/ivan/"><span property="name">Ivan</span></a>
</li>
<li property="knows" resource="http://example.com/manu/#me" typeof="Person">
<a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
</li>
</ul>
</div>
</body>
</root>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg";
foaf:knows
<http://example.com/niklas/#me>,
<http://example.com/stéphane/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me> .
<http://example.com/niklas/#me> a foaf:Person; foaf:name "Niklas" .
<http://example.com/stéphane/#me> a foaf:Person; foaf:name "Stéphane" .
<http://example.com/ivan/#me> a foaf:Person; foaf:name "Ivan" .
<http://example.com/manu/#me> a foaf:Person; foaf:name "Manu" .
}
Test 0297: @about=[] with @typeof does not create a new subject

When the @about resolves to nothing, the typed resource should not create a new subject.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0297.html> foaf:name "Alex Milowski" .
[ a foaf:Person ] .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</svg>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0297.svg> foaf:name "Alex Milowski" .
[ a foaf:Person ] .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0297.xhtml> foaf:name "Alex Milowski" .
[ a foaf:Person ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0297.xhtml> foaf:name "Alex Milowski" .
[ a foaf:Person ] .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</root>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0297.xml> foaf:name "Alex Milowski" .
[ a foaf:Person ] .
}
Test 0298: @about=[] with @typeof does not create a new object

When the @about resolves to nothing, the typed resource should not create a new subject (chaining).

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0298: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person">
<span property="foaf:name">Alex Milowski</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a foaf:Person; foaf:name "Alex Milowski" ] .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0298: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person">
<span property="foaf:name">Alex Milowski</span>
</div>
</body>
</svg>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a foaf:Person; foaf:name "Alex Milowski" ] .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0298: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person">
<span property="foaf:name">Alex Milowski</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a foaf:Person; foaf:name "Alex Milowski" ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0298: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person">
<span property="foaf:name">Alex Milowski</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a foaf:Person; foaf:name "Alex Milowski" ] .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0298: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person">
<span property="foaf:name">Alex Milowski</span>
</div>
</body>
</root>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a foaf:Person; foaf:name "Alex Milowski" ] .
}
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel)

When the @resource resolves to nothing, @href or @src should be used (@rel case).

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0299: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" rel="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0299: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" rel="xhv:license" resource="[]">The Foo Document</a>
</body>
</svg>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0299: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" rel="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0299: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" rel="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0299: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" rel="xhv:license" resource="[]">The Foo Document</a>
</body>
</root>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}
Test 0300: @resource=[] with @href or @src uses @href or @src (@property)

When the @resource resolves to nothing, @href or @src should be used (@property case).

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0300: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" property="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0300: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" property="xhv:license" resource="[]">The Foo Document</a>
</body>
</svg>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0300: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" property="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0300: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" property="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0300: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" property="xhv:license" resource="[]">The Foo Document</a>
</body>
</root>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}
Test 0301: @property with @typeof creates a typed_resource for chaining

@property with @typeof creates a typed_resource for chaining.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0301: Typed Property</title>
</head>
<body>
<p vocab="http://www.milowski.com/V/" property="bit" typeof="thing">
<span property="name">Fizzbit</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0301.html> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
]
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0301: Typed Property</title>
</head>
<body>
<p vocab="http://www.milowski.com/V/" property="bit" typeof="thing">
<span property="name">Fizzbit</span>
</p>
</body>
</svg>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/svg/0301.svg> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
]
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0301: Typed Property</title>
</head>
<body>
<p vocab="http://www.milowski.com/V/" property="bit" typeof="thing">
<span property="name">Fizzbit</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0301.xhtml> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
]
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0301: Typed Property</title>
</head>
<body>
<p vocab="http://www.milowski.com/V/" property="bit" typeof="thing">
<span property="name">Fizzbit</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0301.xhtml> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
]
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0301: Typed Property</title>
</head>
<body>
<p vocab="http://www.milowski.com/V/" property="bit" typeof="thing">
<span property="name">Fizzbit</span>
</p>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0301.xml> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
]
}
Test 0302: @typeof with different content types

Tests that @typof works with terms, CURIES or IRIs.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0302: various types of tokens in @typeof</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://openspring.net/scor#me" typeof="Person foaf:Person http://purl.org/dc/terms/Agent">
<a property="homepage" href="http://openspring.net/"><span property="name">Stéphane Corlosquet</span></a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://openspring.net/scor#me> a schema:Person, foaf:Person, dc:Agent;
schema:name "Stéphane Corlosquet";
schema:homepage <http://openspring.net/> .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0302: various types of tokens in @typeof</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://openspring.net/scor#me" typeof="Person foaf:Person http://purl.org/dc/terms/Agent">
<a property="homepage" href="http://openspring.net/"><span property="name">Stéphane Corlosquet</span></a>
</div>
</body>
</svg>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://openspring.net/scor#me> a schema:Person, foaf:Person, dc:Agent;
schema:name "Stéphane Corlosquet";
schema:homepage <http://openspring.net/> .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0302: various types of tokens in @typeof</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://openspring.net/scor#me" typeof="Person foaf:Person http://purl.org/dc/terms/Agent">
<a property="homepage" href="http://openspring.net/"><span property="name">Stéphane Corlosquet</span></a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://openspring.net/scor#me> a schema:Person, foaf:Person, dc:Agent;
schema:name "Stéphane Corlosquet";
schema:homepage <http://openspring.net/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0302: various types of tokens in @typeof</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://openspring.net/scor#me" typeof="Person foaf:Person http://purl.org/dc/terms/Agent">
<a property="homepage" href="http://openspring.net/"><span property="name">Stéphane Corlosquet</span></a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://openspring.net/scor#me> a schema:Person, foaf:Person, dc:Agent;
schema:name "Stéphane Corlosquet";
schema:homepage <http://openspring.net/> .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0302: various types of tokens in @typeof</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://openspring.net/scor#me" typeof="Person foaf:Person http://purl.org/dc/terms/Agent">
<a property="homepage" href="http://openspring.net/"><span property="name">Stéphane Corlosquet</span></a>
</div>
</body>
</root>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://openspring.net/scor#me> a schema:Person, foaf:Person, dc:Agent;
schema:name "Stéphane Corlosquet";
schema:homepage <http://openspring.net/> .
}
Test 0303: For HTML+RDFa 1.1, remove term elements of @rel/@rev when on same element as @property

So that HTML link-relations don't accidentally change the meaning of @property, in HTML+RDFa @rel/@rev term elements are removed from processing, and the entire attribute is removed if it is empty.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0303: @rel/@rev terms removed if @property exists</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://example.org/base">
<a property="uri" rel="license" href="http://example.orb/val1">Not This</a>
<a property="name" rel="homepage foaf:homepage" href="http://greggkellogg.net/">Gregg Kellogg</a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.org/base> schema:name "Gregg Kellogg";
schema:uri <http://example.orb/val1>;
foaf:homepage <http://greggkellogg.net/> .

}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0303: @rel/@rev terms removed if @property exists</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://example.org/base">
<a property="uri" rel="license" href="http://example.orb/val1">Not This</a>
<a property="name" rel="homepage foaf:homepage" href="http://greggkellogg.net/">Gregg Kellogg</a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.org/base> schema:name "Gregg Kellogg";
schema:uri <http://example.orb/val1>;
foaf:homepage <http://greggkellogg.net/> .

}
Test 0304: Embedded chunks of RDF/XML

Tests that embedded RDF/XML is added to the same graph.

Expected query to return true

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg width="12cm" height="4cm" viewBox="0 0 1200 400"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xml:base="http://example.net/"
xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny">
<desc property="dc:description">A yellow rectangle with sharp corners.</desc>
<metadata>
<rdf:RDF>
<rdf:Description rdf:about="">
<dc:title>Test 0304</dc:title>
</rdf:Description>
</rdf:RDF>
</metadata>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />
</svg>
ASK WHERE {
<http://example.net/> <http://purl.org/dc/terms/title> "Test 0304" .
<http://example.net/> <http://purl.org/dc/terms/description> "A yellow rectangle with sharp corners." .
}

Test 0305: role attribute with explicit id and term

When role is specified along with an id the appropriate triple is created.

Expected query to return true

Test files for XML+Role Attribute:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0305</title>
</head>
<body>
<div id="heading1" role="heading">
<p>Some contents that are a header</p>
</div>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0305.xml#heading1> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#heading> .
}
Test 0307: role attribute with term and no id

When role is specified along with an id the appropriate triple is created.

Expected query to return true

Test files for XML+Role Attribute:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0307</title>
</head>
<body>
<div role="heading">
<p>Some contents that are a header</p>
</div>
</body>
</root>
ASK WHERE {
[] <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#heading> .
}
Test 0308: role attribute with explicit id and IRI as object

When role is specified along with an id the appropriate triple is created.

Expected query to return true

Test files for XML+Role Attribute:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0308</title>
</head>
<body>
<div id="therole" role="http://www.example.com/roles/somerole">
<p>Some contents that are a header</p>
</div>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0308.xml#therole> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.example.com/roles/somerole>
}
Test 0309: role attribute with explicit id and CURIE as object

When role is specified along with an id the appropriate triple is created.

Expected query to return true

Test files for XML+Role Attribute:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0309</title>
</head>
<body>
<div prefix="ex: http://www.example.com/roles/" id="therole" role="ex:somerole">
<p>Some contents that are a header</p>
</div>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0309.xml#therole> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.example.com/roles/somerole>
}
Test 0310: role attribute with multiple values

The datatype permits multiple whitespace separated roles

Expected query to return true

Test files for XML+Role Attribute:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0310</title>
</head>
<body>
<div prefix="ex: http://www.example.com/roles/" id="therole" role="ex:somerole someOtherRole http://www.example.com/alternate/role">
<p>Some contents that are a header</p>
</div>
</body>
</root>
PREFIX ex: <http://www.example.com/roles/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>

ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0310.xml#therole> xhv:role ex:somerole,
xhv:someOtherRole,
<http://www.example.com/alternate/role> .
}
Test 0311: Ensure no triples are generated when @property is empty

If no terms or CURIEs are present in @property, no triple should be generated from it.

Expected query to return false

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0311</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="">Stéphane Corlosquet</span>
</span>
</div>
</body>
</html>
# This is a negative test, there should be no triples generated.
ASK WHERE {
?s ?p ?o .
}

Test files for SVG+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<svg>
<head>
<title>Test 0311</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="">Stéphane Corlosquet</span>
</span>
</div>
</body>
</svg>
# This is a negative test, there should be no triples generated.
ASK WHERE {
?s ?p ?o .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0311</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="">Stéphane Corlosquet</span>
</span>
</div>
</body>
</html>
# This is a negative test, there should be no triples generated.
ASK WHERE {
?s ?p ?o .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0311</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="">Stéphane Corlosquet</span>
</span>
</div>
</body>
</html>
# This is a negative test, there should be no triples generated.
ASK WHERE {
?s ?p ?o .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0311</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="">Stéphane Corlosquet</span>
</span>
</div>
</body>
</root>
# This is a negative test, there should be no triples generated.
ASK WHERE {
?s ?p ?o .
}

Test 0312: Mute plain @rel if @property is present

In HTML5, when @property is present on an element, a @rel attribute on the same element containing only non-CURIE and non-URI values must be completely ignored.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0312</title>
</head>
<body>
<p vocab="http://schema.org/" typeof="Person">
The homepage of <a href="http://example.org/" property="homepage" rel="nofollow">Some Body</a>.
</p>
</body>
</html>
ASK WHERE {
?s <http://schema.org/homepage> <http://example.org/> .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0312</title>
</head>
<body>
<p vocab="http://schema.org/" typeof="Person">
The homepage of <a href="http://example.org/" property="homepage" rel="nofollow">Some Body</a>.
</p>
</body>
</html>
ASK WHERE {
?s <http://schema.org/homepage> <http://example.org/> .
}
Test 0314: Use of many terms from the default vocabulary

When role is specified using default vocabulary terms the expected triples are created.

Expected query to return true

Test files for XML+Role Attribute:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0314</title>
</head>
<body>
<div id="b" role="banner">
<p>Here is a banner for this page.</p>
</div>
<div id="toc" role="contentinfo">
<p>Here is some information about the page's contents:</p>
<ul id="contents" role="list">
<li role="listitem"><a href="#s1">Section 1</a></li>
<li role="listitem"><a href="#s2">Section 2</a></li>
<li role="listitem"><a href="#a1">Appendix 1</a></li>
</ul>
</div>
<div id="main" role="main">
<p>This is the primary content of this page. It has some sections.</p>
<div id="s1" role="section">
<h1 role="heading">Some contents that are a header</h1>
<p>Section 1 needs some content!</p>
</div>
<div id="s2" role="section">
<h1 role="heading">This is Section 2</h1>
<p>Section 2 is pretty boring.</p>
</div>
<div id="a1" role="appendix">
<h1 role="heading">This is Appendix 1</h1>
<p role="note">It is a note about the document - not a primary content
item.</p>
</div>
</div>
</body>
</root>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0314.xml#b> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#banner>.
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0314.xml#toc> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#contentinfo>.
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0314.xml#contents> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#list>.
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0314.xml#a1> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#appendix>.
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0314.xml#s1> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#section>.
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0314.xml#s2> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#section>.
<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/xml/0314.xml#main> <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#main>.
[] <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#listitem>.
[] <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#heading>.
[] <http://www.w3.org/1999/xhtml/vocab#role> <http://www.w3.org/1999/xhtml/vocab#note>.
}
Test 0315: @property and @typeof with incomplete triples

In HTML5, an element with @property and @typeof with incomplete triples sets uses typed resource.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0315</title>
</head>
<body prefix="po: http://example.org/">
<dl>
<dt rel="po:role" class="role">
<span typeof="po:Role" property="rdfs:label">Director</span>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

ASK WHERE {
?s po:role [ rdfs:label [ a po:Role ] ] .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0315</title>
</head>
<body prefix="po: http://example.org/">
<dl>
<dt rel="po:role" class="role">
<span typeof="po:Role" property="rdfs:label">Director</span>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

ASK WHERE {
?s po:role [ rdfs:label [ a po:Role ] ] .
}
Test 0316: @property and @typeof with incomplete triples (@href variant)

In HTML5, an element with @property and @typeof with incomplete triples sets uses typed resource (@href variant).

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0316</title>
</head>
<body prefix="po: http://example.org/">
<dl>
<dt rel="po:role" class="role">
<a typeof="po:Role" property="rdfs:label" href="http://example.org/profiles/director.html">Director</a>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

ASK WHERE {
?s po:role [ rdfs:label <http://example.org/profiles/director.html>] .

<http://example.org/profiles/director.html> a po:Role .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0316</title>
</head>
<body prefix="po: http://example.org/">
<dl>
<dt rel="po:role" class="role">
<a typeof="po:Role" property="rdfs:label" href="http://example.org/profiles/director.html">Director</a>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

ASK WHERE {
?s po:role [ rdfs:label <http://example.org/profiles/director.html>] .

<http://example.org/profiles/director.html> a po:Role .
}
Test 0317: @datatype inhibits new @property behavior

Using @datatype on the same element as @property forces the object to be a literal value.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0316</title>
</head>
<body prefix="po: http://purl.org/ontology/po/">
<dl>
<dt rel="po:role" class="role">
<a typeof="po:Role" property="rdfs:label" datatype="" href="http://example.org/profiles/director.html">Director</a>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://purl.org/ontology/po/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

ASK WHERE {
?s po:role <http://example.org/profiles/director.html> .

<http://example.org/profiles/director.html> a po:Role;
rdfs:label "Director" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0316</title>
</head>
<body prefix="po: http://purl.org/ontology/po/">
<dl>
<dt rel="po:role" class="role">
<a typeof="po:Role" property="rdfs:label" datatype="" href="http://example.org/profiles/director.html">Director</a>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://purl.org/ontology/po/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

ASK WHERE {
?s po:role <http://example.org/profiles/director.html> .

<http://example.org/profiles/director.html> a po:Role;
rdfs:label "Director" .
}
Test 0318: Setting @vocab to empty strings removes default vocabulary

If the value (of @vocab) is empty, then the local default vocabulary must be reset to the Host Language defined default.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head></head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
<meta vocab="" property="prop" content="value"/>
</div>
</div>
</body>
</html>
# Check that foaf:name exists, but there is no statement with "value".

ASK WHERE {
?s <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
OPTIONAL {?s ?p "value" } .
FILTER (! bound (?p))
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head></head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
<meta vocab="" property="prop" content="value"/>
</div>
</div>
</body>
</html>
# Check that foaf:name exists, but there is no statement with "value".

ASK WHERE {
?s <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
OPTIONAL {?s ?p "value" } .
FILTER (! bound (?p))
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
<meta vocab="" property="prop" content="value"/>
</div>
</div>
</body>
</html>
# Check that foaf:name exists, but there is no statement with "value".

ASK WHERE {
?s <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
OPTIONAL {?s ?p "value" } .
FILTER (! bound (?p))
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head></head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
<meta vocab="" property="prop" content="value"/>
</div>
</div>
</body>
</root>
# Check that foaf:name exists, but there is no statement with "value".

ASK WHERE {
?s <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
OPTIONAL {?s ?p "value" } .
FILTER (! bound (?p))
}
Test 0319: Relative @profile

Relative IRI's used with @prefix do not resolve against the document base; they are not processed in any way. However, the returned document does have a base, so when queried, it will seem to have the same base as the original document.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<base href="http://example.com/"></base>
</head>
<body xml:base="http://example.com/" prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body></html>
# Checks to see that prefixes with relative IRIs are not resolved to the document base
# It is resolved against the document origin, though, when the result is parsed
ASK WHERE {
?s <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/relative/iri#prop> ?o; <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/relative/uri#prop> ?o .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<base href="http://example.com/"></base>
</head>
<body xml:base="http://example.com/" prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body></html>
# Checks to see that prefixes with relative IRIs are not resolved to the document base
# It is resolved against the document origin, though, when the result is parsed
ASK WHERE {
?s <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/relative/iri#prop> ?o; <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/relative/uri#prop> ?o .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.com/"></base>
</head>
<body xml:base="http://example.com/" prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body></html>
# Checks to see that prefixes with relative IRIs are not resolved to the document base
# It is resolved against the document origin, though, when the result is parsed
ASK WHERE {
?s <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/relative/iri#prop> ?o; <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/relative/uri#prop> ?o .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<base href="http://example.com/"></base>
</head>
<body xml:base="http://example.com/" prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body></root>
# Checks to see that prefixes with relative IRIs are not resolved to the document base
# It is resolved against the document origin, though, when the result is parsed
ASK WHERE {
?s <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/relative/iri#prop> ?o; <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/relative/uri#prop> ?o .
}
Test 0320: @property binds to @href

Given @property with @href and @src, @href is used as object and sets new subject.

Expected query to return true

Test files for HTML5+RDFa 1.1:

<!DOCTYPE html>
<html>
<head>
<title>Test 0320</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/" src="http://example.net/gregg">
<span property="name">Gregg</span>
</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg" .
}

Test files for XHTML1+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0320</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/" src="http://example.net/gregg">
<span property="name">Gregg</span>
</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg" .
}

Test files for XHTML5+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0320</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/" src="http://example.net/gregg">
<span property="name">Gregg</span>
</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg" .
}

Test files for XML+RDFa 1.1:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0320</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/" src="http://example.net/gregg">
<span property="name">Gregg</span>
</a>
</div>
</body>
</root>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg" .
}
Test 0321: rdfa:ref to rdfa:Prototype

Simple reference to an rdfa:Prototype.

Expected query to return true

Test files for HTML5+RDFa 1.1 Vocabulary:

<!DOCTYPE html>
<html>
<head></head>
<body vocab="http://schema.org/">
<div typeof="Person">
<link property="rdfa:ref" resource="_:a"/>
</div>
<p resource="_:a" typeof="rdfa:Prototype">Name: <span property="name">Amanda</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda" ]
}

Test files for XHTML5+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body vocab="http://schema.org/">
<div typeof="Person">
<link property="rdfa:ref" resource="_:a"/>
</div>
<p resource="_:a" typeof="rdfa:Prototype">Name: <span property="name">Amanda</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda" ]
}
Test 0322: rdfa:ref for additional property value

an rdfa:Prototype can add an additional property value.

Expected query to return true

Test files for HTML5+RDFa 1.1 Vocabulary:

<!DOCTYPE html>
<html>
<head></head>
<body vocab="http://schema.org/">
<div typeof="Person">
<p>My name is <span property="name">Gregg</span></p>
<link property="rdfa:ref" resource="_:surname"/>
</div>
<p resource="_:surname" typeof="rdfa:Prototype">My name is <span property="name">Kellogg</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Gregg", "Kellogg" ]
}

Test files for XHTML5+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body vocab="http://schema.org/">
<div typeof="Person">
<p>My name is <span property="name">Gregg</span></p>
<link property="rdfa:ref" resource="_:surname"/>
</div>
<p resource="_:surname" typeof="rdfa:Prototype">My name is <span property="name">Kellogg</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Gregg", "Kellogg" ]
}
Test 0323: Multiple references to rdfa:Prototype

Multiple subjects can reference the same rdfa:Prototype.

Expected query to return true

Test files for HTML5+RDFa 1.1 Vocabulary:

<!DOCTYPE html>
<html>
<head></head>
<body>
<div typeof="schema:Person">
<link property="rdfa:ref" resource="_:a"/>
</div>
<div typeof="foaf:Person">
<link property="rdfa:ref" resource="_:a"/>
</div>
<p resource="_:a" typeof="rdfa:Prototype">Name: <span property="schema:name foaf:name">Amanda</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda"; foaf:name "Amanda" ] .
[ a foaf:Person; schema:name "Amanda"; foaf:name "Amanda" ] .
}

Test files for XHTML5+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div typeof="schema:Person">
<link property="rdfa:ref" resource="_:a"/>
</div>
<div typeof="foaf:Person">
<link property="rdfa:ref" resource="_:a"/>
</div>
<p resource="_:a" typeof="rdfa:Prototype">Name: <span property="schema:name foaf:name">Amanda</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda"; foaf:name "Amanda" ] .
[ a foaf:Person; schema:name "Amanda"; foaf:name "Amanda" ] .
}
Test 0324: Multiple references to rdfa:Prototype

A subject can reference multiple rdfa:Prototype definitions.

Expected query to return true

Test files for HTML5+RDFa 1.1 Vocabulary:

<!DOCTYPE html>
<html>
<head></head>
<body>
<div typeof="schema:Person">
<link property="rdfa:ref" resource="_:a"/>
<link property="rdfa:ref" resource="_:b"/>
</div>
<p resource="_:a" typeof="rdfa:Prototype">Name: <span property="schema:name">Amanda</span></p>
<p resource="_:b" typeof="rdfa:Prototype"><span property="schema:band">Jazz Band</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda"; schema:band "Jazz Band" ]
}

Test files for XHTML5+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div typeof="schema:Person">
<link property="rdfa:ref" resource="_:a"/>
<link property="rdfa:ref" resource="_:b"/>
</div>
<p resource="_:a" typeof="rdfa:Prototype">Name: <span property="schema:name">Amanda</span></p>
<p resource="_:b" typeof="rdfa:Prototype"><span property="schema:band">Jazz Band</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda"; schema:band "Jazz Band" ]
}
Test 0325: Multiple references to rdfa:Prototype creating a resource

An rdfa:Prototype defining a new blank-node object only creates a single node.

Expected query to return true

Test files for HTML5+RDFa 1.1 Vocabulary:

<!DOCTYPE html>
<html>
<head>
<base href="http://example.org/"/>
</head>
<body vocab="http://schema.org/">
<div resource="#foo" typeof=""><link property="rdfa:ref" resource="_:a"/></div>
<div resource="#bar" typeof=""><link property="rdfa:ref" resource="_:a"/></div>
<div resource="_:a" typeof="rdfa:Prototype">
<div property="schema:refers-to" typeof="">
<span property="schema:name">Amanda</span>
</div>
</div>
</body>
</html>
BASE <http://example.org/>
PREFIX schema: <http://schema.org/>
ASK WHERE {
#foo schema:refers-to _:p .
#bar schema:refers-to _:p .
_:p schema:name "Amanda" .
}

Test files for XHTML5+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.org/"/>
</head>
<body vocab="http://schema.org/">
<div resource="#foo" typeof=""><link property="rdfa:ref" resource="_:a"/></div>
<div resource="#bar" typeof=""><link property="rdfa:ref" resource="_:a"/></div>
<div resource="_:a" typeof="rdfa:Prototype">
<div property="schema:refers-to" typeof="">
<span property="schema:name">Amanda</span>
</div>
</div>
</body>
</html>
BASE <http://example.org/>
PREFIX schema: <http://schema.org/>
ASK WHERE {
#foo schema:refers-to _:p .
#bar schema:refers-to _:p .
_:p schema:name "Amanda" .
}
Test 0326: rdfa:Prototype removed only if referenced

An rdfa:Prototype is removed if referenced, and not otherwise

Expected query to return true

Test files for HTML5+RDFa 1.1 Vocabulary:

<!DOCTYPE html>
<html>
<head>
<base href="http://example.com/"/>
</head>
<body vocab="http://schema.org/">
<div resource="#referencing" typeof="Person">
<link property="rdfa:ref" resource="#referenced"/>
</div>
<p resource="#referenced" typeof="rdfa:Prototype">Name: <span property="name">Bella</span></p>
<p resource="#unreferenced" typeof="rdfa:Prototype">Name: <span property="name">Lola</span></p>
</body>
</html>
BASE <http://example.com/>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
PREFIX schema: <http://schema.org/>
ASK WHERE {
<#referencing> a schema:Person; schema:name "Bella" .
<#unreferenced> a rdfa:Prototype; schema:name "Lola" .
OPTIONAL {
?p a rdfa:Prototype; schema:name "Bella" .
}
FILTER (! bound (?p))
}

Test files for XHTML5+RDFa 1.1 Vocabulary:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.com/"/>
</head>
<body vocab="http://schema.org/">
<div resource="#referencing" typeof="Person">
<link property="rdfa:ref" resource="#referenced"/>
</div>
<p resource="#referenced" typeof="rdfa:Prototype">Name: <span property="name">Bella</span></p>
<p resource="#unreferenced" typeof="rdfa:Prototype">Name: <span property="name">Lola</span></p>
</body>
</html>
BASE <http://example.com/>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
PREFIX schema: <http://schema.org/>
ASK WHERE {
<#referencing> a schema:Person; schema:name "Bella" .
<#unreferenced> a rdfa:Prototype; schema:name "Lola" .
OPTIONAL {
?p a rdfa:Prototype; schema:name "Bella" .
}
FILTER (! bound (?p))
}